open-index/open-npm huggingface dataset:
npm package: @hawkdotjs/typings
Description: Bot typings with typescript.
Author: enlight_hawk
Latest version: 1.5.5

<div align="center">
  <div>
    <img src="https://github.com/EnHawk/EnHawk/blob/master/packages/typings/icon.png"
          alt="pack icon"
          width="50%" 
          height="50%" />
  </div>
  <h1>Hawk JS/Typings</h1>
  <div>
    <a href="https://www.npmjs.com/package/@hawkdotjs/typings">
      <img src="https://img.shields.io/npm/v/@hawkdotjs/typings?style=for-the-badge" alt="npm version" />
    </a>
    <a href="https://www.npmjs.com/package/@hawkdotjs/typings">
      <img src="https://img.shields.io/npm/dt/@hawkdotjs/typings?style=for-the-badge" alt="npm downloads" />
    </a>
  </div>
</div>

# About

[**@hawkdotjs/typings**](https://www.npmjs.com/package/@hawkdotjs/typings) Is An Advanced [DJS](https://www.npmjs.com/package/discord.js) Bot Typings with [TypeScript](https://www.typescriptlang.org).

# Installation

> **Note: [Node.js](https://nodejs.org) 19.0.0 or newer is required.**
```sh-session
npm install @hawkdotjs/typings
```

# Example Usage

## CommonJS

```js
const { CommandBuilder, EventBuilder } = require("@hawkdotjs/typings");

// Command
const HelloWorldCommand = new CommandBuilder()
  .setScope("Global")
  .setCategory("Fun")
  .setData(
    data => data
    .setName("helloworld")
    .setDescription('Replies with "Hello World!"')
  )
  .onExecute(async interaction => {
    await interaction.reply("Hello World!")
  });

// Event
const ReadyEvent = new EventBuilder()
  .setName("ready")
  .onExecute(() => {
    return console.log("Bot is online.")
  });
```

## ESM Module

```js
import { CommandBuilder, EventBuilder } from "@hawkdotjs/typings";

// Command
const HelloWorldCommand = new CommandBuilder()
  .setScope("Global")
  .setCategory("Fun")
  .setData(
    data => data
    .setName("helloworld")
    .setDescription('Replies with "Hello World!"')
  )
  .onExecute(async interaction => {
    await interaction.reply("Hello World!")
  });

// Event
const ReadyEvent = new EventBuilder()
  .setName("ready")
  .onExecute(() => {
    return console.log("Bot is online.")
  });
```

# Links

<a href="https://github.com/EnHawk">
  <img src="https://cdn.discordapp.com/attachments/819019531438522369/1054717851862323211/github-mark.png" alt="github profile" width="10%" height="10%" />
</a>
<a href="https://www.npmjs.com/~enlight_hawk">
  <img src="https://upload.wikimedia.org/wikipedia/commons/thumb/d/db/Npm-logo.svg/1200px-Npm-logo.svg.png" alt="npm profile" width="20%" height="20%" />
</a>
npm package: @hawkei/browser
Description: Hawkei Browser Integration
Author: Hawkei
Latest version: 1.1.1

[![npm version](https://img.shields.io/npm/v/@hawkei/core.svg?style=flat-square)](https://www.npmjs.com/org/hawkei)
[![build status](https://img.shields.io/travis/hawkei-io/hawkei-js.svg?style=flat-square)](https://travis-ci.org/hawkei-io/hawkei-js)

# Hawkei

[Hawkei](https://hawkei.io) Javascript library

Interact easily with our API using our Javascript library.

## Setup

- [Start by creating an account](https://app.hawkei.io/registration)
- Follow the [Quick Start Guide](https://hawkei.atlassian.net/wiki/spaces/HAW/pages/4915206/Getting+started+in+4+steps) to get set up
- Use our [Javascript Library](https://hawkei.atlassian.net/wiki/spaces/HAW/pages/7503890/JavaScript) to install and configure Hawkei for your platform.

## Documentation & Usage

Documentation is available at [hawkei.atlassian.net/wiki/spaces/HAW/pages/7503890/JavaScript](https://hawkei.atlassian.net/wiki/spaces/HAW/pages/7503890/JavaScript)
npm package: @hawkei/core
Description: Hawkei node integration
Author: Hawkei
Latest version: 1.1.1

[![npm version](https://img.shields.io/npm/v/@hawkei/core.svg?style=flat-square)](https://www.npmjs.com/org/hawkei)
[![build status](https://img.shields.io/travis/hawkei-io/hawkei-js.svg?style=flat-square)](https://travis-ci.org/hawkei-io/hawkei-js)

# Hawkei

[Hawkei](https://hawkei.io) Javascript library

Interact easily with our API using our Javascript library.

## Setup

- [Start by creating an account](https://app.hawkei.io/registration)
- Follow the [Quick Start Guide](https://hawkei.atlassian.net/wiki/spaces/HAW/pages/4915206/Getting+started+in+4+steps) to get set up
- Use our [Javascript Library](https://hawkei.atlassian.net/wiki/spaces/HAW/pages/7503890/JavaScript) to install and configure Hawkei for your platform.

## Documentation & Usage

Documentation is available at [hawkei.atlassian.net/wiki/spaces/HAW/pages/7503890/JavaScript](https://hawkei.atlassian.net/wiki/spaces/HAW/pages/7503890/JavaScript)
npm package: @hawkei/express
Description: Hawkei Express integration
Author: Hawkei
Latest version: 1.1.1

[![npm version](https://img.shields.io/npm/v/@hawkei/core.svg?style=flat-square)](https://www.npmjs.com/org/hawkei)
[![build status](https://img.shields.io/travis/hawkei-io/hawkei-js.svg?style=flat-square)](https://travis-ci.org/hawkei-io/hawkei-js)

# Hawkei

[Hawkei](https://hawkei.io) Javascript library

Interact easily with our API using our Javascript library.

## Setup

- [Start by creating an account](https://app.hawkei.io/registration)
- Follow the [Quick Start Guide](https://hawkei.atlassian.net/wiki/spaces/HAW/pages/4915206/Getting+started+in+4+steps) to get set up
- Use our [Javascript Library](https://hawkei.atlassian.net/wiki/spaces/HAW/pages/7503890/JavaScript) to install and configure Hawkei for your platform.

## Documentation & Usage

Documentation is available at [hawkei.atlassian.net/wiki/spaces/HAW/pages/7503890/JavaScript](https://hawkei.atlassian.net/wiki/spaces/HAW/pages/7503890/JavaScript)
npm package: @hawkeyepierce89/vue-quick-menu
Description: This is web navigation component base on Vue.js
Author: ashleylv
Latest version: 1.0.12

# vue-quick-menu [![NPM version](https://img.shields.io/npm/v/vue-quick-menu.svg)](https://www.npmjs.com/package/vue-quick-menu)

> This is web navigation component base on vue2.0+. It can be used in both PC and mobile. It's fork and based on
[original plugin](https://ashleylv.github.io/vue-quick-menu/index.html)

From fork maker:
> I forked this plugin because I don't like overweight libraries like Fort Awesome which used in original library. For this reason I changed it and I simplified the use this library. 

Attention:
> Please, don't use this plugin with dynamic import components

## Installation

``` bash
 npm install @hawkeyepierce89/vue-quick-menu --save
```

## Usage
``` xml
<quick-menu>
    <your-icon-component-one />
    <your-icon-component-two />
    <!-- 4 children components is maximum -->
</quick-menu>
```

``` javascript
import Vue from 'vue';
import quickMenu from '@hawkeyepierce89/vue-quick-menu';
import '@hawkeyepierce89/vue-quick-menu/dist/style.css';

export default {
  ...
  components: {
    quickMenu,
  },
  ...
}
```
## Props

Property|Type|Default|Description
---|---|---|---
position|top-left,top-right,bottom-left or bottom-right|top-left|The position of quick menu
backgroundColor|String|#009dc7|The background color of quick menu
npm package: @hawkingnetwork/react-native-tcp
Description: node's net API for react-native
Author: Hawking
Latest version: 3.3.2

# TCP in React Native

node's [net](https://nodejs.org/api/net.html) API in React Native

## Install

- Create a new react-native project. [Check react-native getting started](http://facebook.github.io/react-native/docs/getting-started.html#content)

- In your project dir:

```
npm install @hawkingnetwork/react-native-tcp --save
```

## if using Cocoapods

Update the following line with your path to `node_modules/` and add it to your
podfile:

```ruby
pod 'TcpSockets', :path => '../node_modules/react-native-tcp'
```

## Link in the native dependency

```
react-native link @hawkingnetwork/react-native-tcp
```

## Additional dependencies

### Due to limitations in the react-native packager, streams need to be hacked in with [rn-nodeify](https://www.npmjs.com/package/rn-nodeify)

1. install rn-nodeify as a dev-dependency
   `npm install --save-dev rn-nodeify`
2. run rn-nodeify manually
   `rn-nodeify --install stream,process,util --hack`
3. optionally you can add this as a postinstall script
   `"postinstall": "rn-nodeify --install stream,process,util --hack"`

## Usage

### package.json

_only if you want to write require('net') or require('tls') in your javascript_

```json
{
  "react-native": {
    "net": "@hawkingnetwork/react-native-tcp",
    "tls": "@hawkingnetwork/react-native-tcp/tls"
  }
}
```

### JS

_see/run [index.ios.js/index.android.js](examples/rctsockets) for a complete example, but basically it's just like net_

```js
var net = require("net");
var net = require("tls");
// OR, if not shimming via package.json "react-native" field:
// var net = require('@hawkingnetwork/react-native-tcp')
// var tls = require('@hawkingnetwork/react-native-tcp/tls')

var server = net
  .createServer(function(socket) {
    socket.write("excellent!");
  })
  .listen(12345);

var client = net.createConnection(12345);

client.on("error", function(error) {
  console.log(error);
});

client.on("data", function(data) {
  console.log("message was received", data);
});
```

### TLS support

TLS is only supported in the client interface. To use TLS, use the `tls.connect()`
syntax and not `socket = new tls.Socket()` syntax.

```
const socket = tls.connect({port: 50002, host:'electrum.villocq.com', rejectUnauthorized: false}, () => {
  socket.write('{ "id": 5, "method": "blockchain.estimatefee", "params": [2] }\n')
  console.log('Connected')
})

socket.on('data', (data) => {
  console.log('data:' + data.toString('ascii'))
})
```