open-index/open-npm huggingface dataset:
npm package: @36node-fcp/ecs-robot-guangxin-sdk
Description: SDK for ecs-robot-guangxin.
Latest version: 0.0.2

# @36node/ecs-robot-guangxin-sdk

[![version][0]][1] [![downloads][2]][3]

## Install

```bash
yarn add @36node/ecs-robot-guangxin-sdk
```

## Usage

```js
const SDK = require("@36node/ecs-robot-guangxin-sdk");

const sdk = new SDK({ base: "http://localhost:3000" });
await sdk.pet.listPets();
```

## Test

```sh
yarn test
```

## Contributing

1. Fork it!
2. Create your feature branch: `git checkout -b my-new-feature`
3. Commit your changes: `git commit -am 'Add some feature'`
4. Push to the branch: `git push origin my-new-feature`
5. Submit a pull request :D

## Author

**module** © [36node](https://github.com/36node), Released under the [MIT](./LICENSE) License.

Authored and maintained by 36node with help from contributors ([list](https://github.com/36node/module/contributors)).

> GitHub [@36node](https://github.com/36node)

[0]: https://img.shields.io/npm/v/@36node/ecs-robot-guangxin-sdk.svg?style=flat
[1]: https://npmjs.com/package/@36node/ecs-robot-guangxin-sdk
[2]: https://img.shields.io/npm/dm/@36node/ecs-robot-guangxin-sdk.svg?style=flat
[3]: https://npmjs.com/package/@36node/ecs-robot-guangxin-sdk
npm package: @36node-stargate/auth-sdk
Description: stargate auth sdk
Latest version: 1.8.2

# @36node-stargate/auth-sdk

[![version][0]][1] [![downloads][2]][3]

## Install

```bash
yarn add @36node-stargate/auth-sdk
```

## Usage

### SDK

```js
const SDK = require("@36node-stargate/auth-sdk");

const sdk = new SDK();
sdk.namespace.listNamespaces();
```

### Mock

```js
const mock = require("@36node-stargate/auth-sdk/mock");

const db = mock.createDB();

mock.bindRouter({
  router,
})
```

## Contributing

1. Fork it!
2. Create your feature branch: `git checkout -b my-new-feature`
3. Commit your changes: `git commit -am 'Add some feature'`
4. Push to the branch: `git push origin my-new-feature`
5. Submit a pull request :D

## Author

**module** © [36node](https://github.com/36node), Released under the [MIT](./LICENSE) License.

Authored and maintained by 36node with help from contributors ([list](https://github.com/36node/module/contributors)).

> GitHub [@36node](https://github.com/36node)

[0]: https://img.shields.io/npm/v/@36node/template-sdk.svg?style=flat
[1]: https://npmjs.com/package/@36node/template-sdk
[2]: https://img.shields.io/npm/dm/@36node/template-sdk.svg?style=flat
[3]: https://npmjs.com/package/@36node/template-sdk
npm package: @36node/aip-sdk-js
Description: A SDK boilerplate.
Latest version: 0.0.3

# @36node/template-sdk

[![version][0]][1] [![downloads][2]][3]

## Install

```bash
yarn add module
```

## Usage

```js
const SDK = require("@36node/template-sdk");

const sdk = new SDK({ base: "http://localhost:3000" });
await sdk.pet.listPets();
```

## Test

```sh
yarn test
```

## Contributing

1. Fork it!
2. Create your feature branch: `git checkout -b my-new-feature`
3. Commit your changes: `git commit -am 'Add some feature'`
4. Push to the branch: `git push origin my-new-feature`
5. Submit a pull request :D

## Author

**module** © [36node](https://github.com/36node), Released under the [MIT](./LICENSE) License.

Authored and maintained by 36node with help from contributors ([list](https://github.com/36node/module/contributors)).

> GitHub [@36node](https://github.com/36node)

[0]: https://img.shields.io/npm/v/@36node/template-sdk.svg?style=flat
[1]: https://npmjs.com/package/@36node/template-sdk
[2]: https://img.shields.io/npm/dm/@36node/template-sdk.svg?style=flat
[3]: https://npmjs.com/package/@36node/template-sdk
npm package: @36node/auth-v0-sdk
Description: A SDK boilerplate.
Latest version: 0.3.0

# @36node/auth-sdk

[![version][0]][1] [![downloads][2]][3]

## Install

```bash
yarn add @36node/auth-sdk
```

## Usage

### SDK

```js
const SDK = require("@36node/auth-sdk");

const sdk = new SDK();
sdk.namespace.listNamespaces();
```

### Mock
```js
const mock = require("@36node/auth-sdk/mock");

const db = mock.createDB();

mock.bindRouter({
  router,
})
```

## Contributing

1. Fork it!
2. Create your feature branch: `git checkout -b my-new-feature`
3. Commit your changes: `git commit -am 'Add some feature'`
4. Push to the branch: `git push origin my-new-feature`
5. Submit a pull request :D

## Author

**module** © [36node](https://github.com/36node), Released under the [MIT](./LICENSE) License.

Authored and maintained by 36node with help from contributors ([list](https://github.com/36node/module/contributors)).

> GitHub [@36node](https://github.com/36node)

[0]: https://img.shields.io/npm/v/@36node/template-sdk.svg?style=flat
[1]: https://npmjs.com/package/@36node/template-sdk
[2]: https://img.shields.io/npm/dm/@36node/template-sdk.svg?style=flat
[3]: https://npmjs.com/package/@36node/template-sdk
npm package: @36node/bus-core-sdk
Description: A SDK boilerplate.
Latest version: 0.1.38

# @36node/bus-core-sdk

[![version][0]][1] [![downloads][2]][3]

主要负责车辆档案和车辆实时状态信息的查询与修改。

## Install

```bash
yarn add @36node/bus-core-sdk
```

## Usage

```js
const SDK = require("@36node/bus-core-sdk");

const sdk = new SDK({ base: "http://localhost:3000" });
await sdk.line.listLines();
```

## Test

```sh
yarn test
```

## Contributing

1. Fork it!
2. Create your feature branch: `git checkout -b my-new-feature`
3. Commit your changes: `git commit -am 'Add some feature'`
4. Push to the branch: `git push origin my-new-feature`
5. Submit a pull request :D

## Author

**module** © [36node](https://github.com/36node), Released under the [MIT](./LICENSE) License.

Authored and maintained by 36node with help from contributors ([list](https://github.com/36node/module/contributors)).

> GitHub [@36node](https://github.com/36node)

[0]: https://img.shields.io/npm/v/@36node/bus-core-sdk.svg?style=flat
[1]: https://npmjs.com/package/@36node/bus-core-sdk
[2]: https://img.shields.io/npm/dm/@36node/bus-core-sdk.svg?style=flat
[3]: https://npmjs.com/package/@36node/bus-core-sdk
npm package: @36node/bus-op-sdk
Description: bus-op SDK.
Latest version: 0.4.16

# @36node/bus-op-sdk

[![version][0]][1] [![downloads][2]][3]

主要负责报警处置和工单系统。

## Install

```bash
yarn add @36node/bus-op-sdk
```

## Usage

```js
const SDK = require("@36node/bus-op-sdk");

const sdk = new SDK({ base: "http://localhost:3000" });
await sdk.alert.listAlerts();
await sdk.fault.listFaults();
await sdk.warning.listWarnings();
```

## Test

```sh
yarn test:int
```

## Contributing

1. Fork it!
2. Create your feature branch: `git checkout -b my-new-feature`
3. Commit your changes: `git commit -am 'Add some feature'`
4. Push to the branch: `git push origin my-new-feature`
5. Submit a pull request :D

## Author

**module** © [36node](https://github.com/36node), Released under the [MIT](./LICENSE) License.

Authored and maintained by 36node with help from contributors ([list](https://github.com/36node/module/contributors)).

> GitHub [@36node](https://github.com/36node)

[0]: https://img.shields.io/npm/v/@36node/bus-op-sdk.svg?style=flat
[1]: https://npmjs.com/package/@36node/bus-op-sdk
[2]: https://img.shields.io/npm/dm/@36node/bus-op-sdk.svg?style=flat
[3]: https://npmjs.com/package/@36node/bus-op-sdk
npm package: @36node/bus-pile-sdk
Description: SDK for bus charging pile service.
Latest version: 0.1.0

# @36node/bus-pile-sdk

[![version][0]][1] [![downloads][2]][3]

## Install

```bash
yarn add module
```

## Usage

```js
const SDK = require("@36node/bus-pile-sdk");

const sdk = new SDK({ base: "http://localhost:3000" });
```

## Test

```sh
yarn test
```

## Contributing

1. Fork it!
2. Create your feature branch: `git checkout -b my-new-feature`
3. Commit your changes: `git commit -am 'Add some feature'`
4. Push to the branch: `git push origin my-new-feature`
5. Submit a pull request :D

## Author

**module** © [36node](https://github.com/36node), Released under the [MIT](./LICENSE) License.

Authored and maintained by 36node with help from contributors ([list](https://github.com/36node/module/contributors)).

> GitHub [@36node](https://github.com/36node)

[0]: https://img.shields.io/npm/v/@36node/bus-pile-sdk.svg?style=flat
[1]: https://npmjs.com/package/@36node/bus-pile-sdk
[2]: https://img.shields.io/npm/dm/@36node/bus-pile-sdk.svg?style=flat
[3]: https://npmjs.com/package/@36node/bus-pile-sdk
npm package: @36node/core-sdk-js
Description: A SDK boilerplate.
Latest version: 0.1.1

# @36node/template-sdk

[![version][0]][1] [![downloads][2]][3]

## Install

```bash
yarn add module
```

## Usage

```js
const SDK = require("@36node/template-sdk");

const sdk = new SDK({ base: "http://localhost:3000" });
await sdk.pet.listPets();
```

## Test

```sh
yarn test
```

## Contributing

1. Fork it!
2. Create your feature branch: `git checkout -b my-new-feature`
3. Commit your changes: `git commit -am 'Add some feature'`
4. Push to the branch: `git push origin my-new-feature`
5. Submit a pull request :D

## Author

**module** © [36node](https://github.com/36node), Released under the [MIT](./LICENSE) License.

Authored and maintained by 36node with help from contributors ([list](https://github.com/36node/module/contributors)).

> GitHub [@36node](https://github.com/36node)

[0]: https://img.shields.io/npm/v/@36node/template-sdk.svg?style=flat
[1]: https://npmjs.com/package/@36node/template-sdk
[2]: https://img.shields.io/npm/dm/@36node/template-sdk.svg?style=flat
[3]: https://npmjs.com/package/@36node/template-sdk
npm package: @36node/eslint-config
Description: ESLint configuration used by 36node team
Latest version: 0.6.4

# @36node/eslint-config

[![version][0]][1] [![downloads][2]][3]

eslint config for 36node team

based on eslint-config-react-app

plus prettier/prettier

some day we need to update it

[0]: https://img.shields.io/npm/v/@36node/eslint-config.svg?style=flat
[1]: https://npmjs.org/package/@36node/eslint-config
[2]: https://img.shields.io/npm/dm/@36node/eslint-config.svg?style=flat
[3]: https://npmjs.org/package/@36node/eslint-config
npm package: @36node/fastman
Description: A tool to export and import postman collection file
Latest version: 0.5.4

# @36node/fastman

[![version][0]][1] [![downloads][2]][3]

## Install

```bash
yarn global add @36node/fastman
```

## Usage

### 1. config api key

```sh
$ fastman -h
Usage: cli [options] [command]

Options:
  -V, --version         output the version number
  -h, --help            output usage information

Commands:
  config [options]      config fastman, like postman api key eg..
  ls                    list collections exist in postman
  delete [id]           delete collection by id
  import [file]         import a collection file to postman
  export [name] [dist]  export collection file with name, saved in dist
```

### 1. Config postman apiKey

You can get your key from the [integrations dashboard](https://go.postman.co/integrations/services/pm_pro_api)

```sh
fastman config -a <your-api-key>
```

### 2. ls collections of postman

```sh
# list collections in postman, display id and name
$ fastman ls
190e1e16-7e25-4be8-97e1-2f012f941ce4 collection1
1f768e27-5f39-4a5f-8ce8-7a028e504fcf collection2
2923edc5-f23c-47f9-b5d4-4657676681d2 collection3
```

### 3. export collection of postman to collection file

```sh
# specify dist
$ fastman export collection1 ./try_collection.json

# empty dist, auto saved in <name>.postman_collection.json
$ fastman export collection1
```

### 4. import collection by collection file

```sh
# if collection name existed in postman, update it, or else create new collection.
$ fastman import ./.try_collection.json
```

## Contributing

1. Fork it!
2. Create your feature branch: `git checkout -b my-new-feature`
3. Commit your changes: `git commit -am 'Add some feature'`
4. Push to the branch: `git push origin my-new-feature`
5. Submit a pull request :D

## Author

**fastman** © [36node](https://github.com/36node), Released under the [MIT](./LICENSE) License.

Authored and maintained by 36node with help from contributors ([list](https://github.com/36node/template-cli/contributors)).

> [github.com/zzswang](https://github.com/zzswang) · GitHub [@36node](https://github.com/36node)

[0]: https://img.shields.io/npm/v/@36node/fastman.svg?style=flat
[1]: https://npmjs.com/package/@36node/fastman
[2]: https://img.shields.io/npm/dm/@36node/fastman.svg?style=flat
[3]: https://npmjs.com/package/@36node/fastman
npm package: @36node/fetch
Description: Fetch tool.
Latest version: 0.7.2

# @36node/fetch

[![version][0]][1] [![downloads][2]][3]

## Usage

```bash
yarn add @36node/fetch
```

```js
import fetch from "@36node/fetch";

const res = await fetch("some url", { headers: {} });
console.log(res.headers);
console.log(res.body);
```

## Contributing

1. Fork it!
2. Create your feature branch: `git checkout -b my-new-feature`
3. Commit your changes: `git commit -am 'Add some feature'`
4. Push to the branch: `git push origin my-new-feature`
5. Submit a pull request :D

## Author

**module** © [36node](https://github.com/36node), Released under the [MIT](./LICENSE) License.

Authored and maintained by 36node with help from contributors ([list](https://github.com/36node/module/contributors)).

> [github.com/zzswang](https://github.com/zzswang) · GitHub [@36node](https://github.com/36node)

[0]: https://img.shields.io/npm/v/@36node/fetch.svg?style=flat
[1]: https://npmjs.com/package/@36node/fetch
[2]: https://img.shields.io/npm/dm/@36node/fetch.svg?style=flat
[3]: https://npmjs.com/package/@36node/fetch
npm package: @36node/gov-migration-sdk-js
Description: Government migration api sdk.
Latest version: 0.1.2

# @36node/gov-migration-sdk

[![version][0]][1] [![downloads][2]][3]

## Install

```bash
yarn add module
```

## Usage

```js
const SDK = require("@36node/gov-migration-sdk");

const sdk = new SDK({ base: "http://localhost:3000" });
await sdk.application.listApplications();
```

## Test

```sh
yarn test
```

## Contributing

1. Fork it!
2. Create your feature branch: `git checkout -b my-new-feature`
3. Commit your changes: `git commit -am 'Add some feature'`
4. Push to the branch: `git push origin my-new-feature`
5. Submit a pull request :D

## Author

**module** © [36node](https://github.com/36node), Released under the [MIT](./LICENSE) License.

Authored and maintained by 36node with help from contributors ([list](https://github.com/36node/module/contributors)).

> GitHub [@36node](https://github.com/36node)

[0]: https://img.shields.io/npm/v/@36node/gov-migration-sdk.svg?style=flat
[1]: https://npmjs.com/package/@36node/gov-migration-sdk
[2]: https://img.shields.io/npm/dm/@36node/gov-migration-sdk.svg?style=flat
[3]: https://npmjs.com/package/@36node/gov-migration-sdk
npm package: @36node/kanban
Description: Kanban service for ticket and project
Latest version: 0.0.0

# @36node/kanban

看板服务，提供项目、里程碑、工单、泳道等服务

## Development

```sh
# prepare service with docker
docker-compose -d

# install dependencies
yarn

# start service
yarn start

# if we want to start service as production
# NODE_ENV=production yarn start

# use postman to check api
yarn test:int
```

### Folder structures

```sh
bin
./src
├── api
├── config
├── lib
├── middleware
├── services
├── app.js
├── index.js
├── server.js
└── task.js
```

- bin: 受限于 nodejs 的原生能力限制，该目录下要求采用 commonjs 写法; bin 目录用于辅助项目执行。
- src: source 目录只负责输出模块。
- api: 自动生成的 api 目录包含 koa 桩代码
- config: 配置入口，用 dotenv
- lib: 基础库
- middleware: koa 中间件
- services: api 的实现
- app.js: 主程序
- index.js: 引用目录
- server.js: 服务器启动入口
- task.js: 任务入口

目录引用原则：

- config 文件是唯一的例外
- services and tasks 引用 models
- lib 目录可以被任何文件引用
- lib 目录内部不要出现交叉引用

### default token

`eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyLCJ1c2VyIjp7InJvbGVzIjpbIkFETUlOIiwiVVNFUiJdfX0.XA1kE_UdbOsU0rfmG3g1y3SpJ5aFVzPGFBHihVXv58sNatweqLHPEUAwhqobgKgmAbaKa3dlYrXEpHESHZ7AJgQYCfSeVxtsKyoQmcq9OYA0iFcH5oCWQgYqfeWJPOroMlMdNQax5kG-GkuaFbIiwiw-9j_ACS8CSPO9Oq2dQCA`

visit [jwt.io](jwt.io) for more.

```json
{
  "sub": "1234567890",
  "name": "John Doe",
  "iat": 1516239022,
  "user": {
    "roles": ["ADMIN", "USER"]
  }
}
```

### postman

```sh
# 安装 fastman
yarn global add @36node/fastman

# You can get your key from the [integrations dashboard](https://go.postman.co/integrations/services/pm_pro_api)
fastman config -a <your-postman-api-key>

# list all your collections in your postman
fastman ls

# import file into postman, import data.json env.json by your self
fastman import ./test/xxxx/collection.json

# export file from postman
fastman export "Petstore Service" ./test/xxxx/collection.json
```

## Url Pattern

Find more in [@36node/sketch/docs/url.md](https://github.com/36node/sketch/blob/master/docs/url.md)

## 权限定义

动态角色

- PO 指 project owner
- PM 指 project manager
- CANDIDATE 指工单候选人
- EXECUTOR 指工单执行者

固定角色

- USER(保留角色): 普通用户，其实是一个无角色
- ADMIN(保留角色): 包含所有角色的所有权限，测试中不一一测试，单元测试中做一次 ADMIN 角色解析，看是否能够解析成所有角色即可。

## Contributing

1. Create your feature branch: `git checkout -b feature/something`
2. Commit your changes: `git commit -am 'feat: something'`
3. Push to the branch: `git push -u origin feature/something`
4. Submit a pull request :D

## Author

**kanban** © [36node](https://github.com/36node)

Authored and maintained by 36node with help from contributors ([list](https://github.com/36node/tpl-service/contributors)).

> [github.com/zzswang](https://github.com/zzswang) · GitHub [@36node](https://github.com/36node)

[0]: https://img.shields.io/npm/v/@36node/kanban.svg?style=flat
[1]: https://npmjs.com/package/@36node/kanban
[2]: https://img.shields.io/npm/dm/@36node/kanban.svg?style=flat
[3]: https://npmjs.com/package/@36node/kanban
npm package: @36node/koa-openapi
Description: koa openapi middleware for 36node team.
Latest version: 0.1.7

# @36node/koa-openapi

[![version][0]][1] [![downloads][2]][3]

## Install

```bash
yarn add @36node/koa-openapi
```

## Usage

```js
import openapi from "@36node/koa-openapi";
app.use(
  openapi({
    url: `${BASE}/openapi.yml`,
    file: path.join(__dirname, "../openapi.yml"),
  })
);
```

## Contributing

1. Fork it!
2. Create your feature branch: `git checkout -b my-new-feature`
3. Commit your changes: `git commit -am 'Add some feature'`
4. Push to the branch: `git push origin my-new-feature`
5. Submit a pull request :D

## Author

**module** © [36node](https://github.com/36node), Released under the [MIT](./LICENSE) License.

Authored and maintained by 36node with help from contributors ([list](https://github.com/36node/module/contributors)).

> [github.com/zzswang](https://github.com/zzswang) · GitHub [@36node](https://github.com/36node)

[0]: https://img.shields.io/npm/v/@36node/koa-openapi.svg?style=flat
[1]: https://npmjs.com/package/@36node/koa-openapi
[2]: https://img.shields.io/npm/dm/@36node/koa-openapi.svg?style=flat
[3]: https://npmjs.com/package/@36node/koa-openapi
npm package: @36node/protocol-32960
Description: Js implementation for protocol 32960.
Latest version: 0.15.2

# @36node/protocol-32960

[![version][0]][1] [![downloads][2]][3]

电动汽车 32960 协议解析库

## Install

```bash
yarn add @36node/protocol-32960
```

## Usage

```js
import Protocol from "@36node/protocol-32960";

// buffer: origin data
const protocol = new Protocol({
  encrypt: { key: "xx", iv: "xxx", method: "AES128" },
});
const data = protocol.parse(buffer);
const buf = protocol.build(data);
```

### cli

使用方法，可以全局安装或者用 npx 免安装执行

```sh
npx @36node/protocol-32960 parse -h

# Usage: parse [options]
# Parse binary message data

# Options:
#  -d, --data <data>        Binary hex data of message
#  -i, --input <input>      File contains binary hex data of message
#  -d, --data <data>        Binary hex data of message
#  -o, --output <output>    Save parsed result to file

# example:

npx @36node/protocol-32960 parse -d  232303fe4c53464430333230324a4330303136323701006b13020200210c81010002ff0300000423f5010002ff0300000423f3010002ff0300000423f3010002ff0300000423f3010002ff0300000423f3010002ff0300000423f6010002ff0300000423f5010002ff0300000423f5010002ff0300000423f3010002ff0300000423f30e

# 如果需要将结果拷贝到内存，可以通过管道
npx @36node/protocol-32960 parse -d xxxxxxxxxxxxxxx | pbcopy

# 通过文件输入输出
npx @36node/protocol-32960 parse -i ./some_in.file -o ./some_out.file
```

## Protocol

[协议和实现](./docs/protocol.md)

## Contributing

1. Fork it!
2. Create your feature branch: `git checkout -b my-new-feature`
3. Commit your changes: `git commit -am 'Add some feature'`
4. Push to the branch: `git push origin my-new-feature`
5. Submit a pull request :D

## Author

**module** © [36node](https://github.com/36node), Released under the [MIT](./LICENSE) License.

Authored and maintained by 36node with help from contributors ([list](https://github.com/36node/module/contributors)).

> [github.com/zzswang](https://github.com/zzswang) · GitHub [@36node](https://github.com/36node)

[0]: https://img.shields.io/npm/v/@36node/protocol-32960.svg?style=flat
[1]: https://npmjs.com/package/@36node/protocol-32960
[2]: https://img.shields.io/npm/dm/@36node/protocol-32960.svg?style=flat
[3]: https://npmjs.com/package/@36node/protocol-32960
npm package: @36node/sketch
Description: Cli for @36node/sketch
Latest version: 0.15.7

# @36node/sketch

[![version][0]][1] [![downloads][2]][3]

Sketch is a baseground of 36node team. We use these framework to build our service and app.

## Usage

```sh

// init project
npx @36node/sketch init some-folder-name

// start service or web app
sketch start

// test
sketch test

// build
sketch build
```

## Contributing

1. Fork it!
2. Create your feature branch: `git checkout -b my-new-feature`
3. Commit your changes: `git commit -am 'Add some feature'`
4. Push to the branch: `git push origin my-new-feature`
5. Submit a pull request :D

## Author

\*\*\* © [36node](https://github.com/36node), Released under the [MIT](./LICENSE) License.

Authored and maintained by 36node with help from contributors ([list](https://github.com/36node/contributors)).

> [github.com/zzswang](https://github.com/zzswang) · GitHub [@36node](https://github.com/36node)

[0]: https://img.shields.io/npm/v/@36node/sketch.svg?style=flat
[1]: https://npmjs.org/package/@36node/sketch
[2]: https://img.shields.io/npm/dm/@36node/sketch.svg?style=flat
[3]: https://npmjs.org/package/@36node/sketch