open-index/open-npm huggingface dataset:
npm package: @otinsoft/vue-toolkit
Description: Common utilities for Vue projects.
Author: Cretu Eusebiu
Latest version: 0.1.0

<h1>Vue Toolkit</h1>

<a href="https://npmjs.com/package/@otinsoft/vue-toolkit"><img src="https://img.shields.io/npm/v/@otinsoft/vue-toolkit.svg?style=flat-square" alt="Latest Version on NPM"></a>
<a href="https://travis-ci.org/otinsoft/vue-toolkit"><img src="https://travis-ci.org/otinsoft/vue-toolkit.svg?branch=master" alt="Build Status"></a>

## Installation

```bash
npm install --save @otinsoft/vue-toolkit
```
npm package: @otis-eng/server-express
Description: import server from
Author: phankieuphu
Latest version: 1.0.2

# nodejs_typescript_example
# npm-libary
import server from 

# config
cosnt app = server.ExpressApp();
app.useCORS("*","*").useJSON().useEnviroment().useVersion(VERSION).useMongoDb(MONGO_URI)

# rotuer
new FutureRouter(app).mount();

# controller 

async function returnOK(req:Request,res:Response){
    server.sendOk(data:)
}
npm package: @otium-kaizen/sdkv3
Description: 🛠 An SDK for building applications on top of kaizen.
Author: kaizen
Latest version: 1.0.0

# Sushiswap SDK

In-depth documentation on this SDK is available at [uniswap.org](https://uniswap.org/docs/v2/SDK/getting-started/).

This modifies uniswap-sdk's UniswapV2Factory address. The new address for sushiswap is  `0xC0AEe478e3658e2610c5F7A4A2E1777cE9e4f2Ac`.

## Running tests

To run the tests, follow these steps. You must have at least node v10 and [yarn](https://yarnpkg.com/) installed.

First clone the repository:

```sh
git clone https://github.com/sushiswap/sushiswap-sdk.git
```

Move into the sushiswap-sdk working directory

```sh
cd sushiswap-sdk/
```

Install dependencies

```sh
yarn install
```

Run tests

```sh
yarn test
```

You should see output like the following:

```sh
yarn run v1.22.4
$ tsdx test
 PASS  test/constants.test.ts
 PASS  test/pair.test.ts
 PASS  test/fraction.test.ts
 PASS  test/miscellaneous.test.ts
 PASS  test/entities.test.ts
 PASS  test/trade.test.ts

Test Suites: 1 skipped, 6 passed, 6 of 7 total
Tests:       3 skipped, 82 passed, 85 total
Snapshots:   0 total
Time:        5.091s
Ran all test suites.
✨  Done in 6.61s.
```
npm package: @otium-kaizen/sdkv5
Description: 🛠 An SDK for building applications on top of Kaizen.
Latest version: 1.0.1

# Sushiswap SDK

In-depth documentation on this SDK is available at [uniswap.org](https://uniswap.org/docs/v2/SDK/getting-started/).

This modifies uniswap-sdk's UniswapV2Factory address. The new address for sushiswap is  `0xC0AEe478e3658e2610c5F7A4A2E1777cE9e4f2Ac`.

## Running tests

To run the tests, follow these steps. You must have at least node v10 and [yarn](https://yarnpkg.com/) installed.

First clone the repository:

```sh
git clone https://github.com/sushiswap/sushiswap-sdk.git
```

Move into the sushiswap-sdk working directory

```sh
cd sushiswap-sdk/
```

Install dependencies

```sh
yarn install
```

Run tests

```sh
yarn test
```

You should see output like the following:

```sh
yarn run v1.22.4
$ tsdx test
 PASS  test/constants.test.ts
 PASS  test/pair.test.ts
 PASS  test/fraction.test.ts
 PASS  test/miscellaneous.test.ts
 PASS  test/entities.test.ts
 PASS  test/trade.test.ts

Test Suites: 1 skipped, 6 passed, 6 of 7 total
Tests:       3 skipped, 82 passed, 85 total
Snapshots:   0 total
Time:        5.091s
Ran all test suites.
✨  Done in 6.61s.
```
npm package: @otium-kaizen/v2
Description: 🛠 An SDK for building applications on top of Uniswap V2
Author: uniswap
Latest version: 3.0.2

# Uniswap V2 SDK

[![Unit Tests](https://github.com/Uniswap/uniswap-v2-sdk/workflows/Unit%20Tests/badge.svg)](https://github.com/Uniswap/uniswap-v2-sdk/actions?query=workflow%3A%22Unit+Tests%22)
[![Lint](https://github.com/Uniswap/uniswap-v2-sdk/workflows/Lint/badge.svg)](https://github.com/Uniswap/uniswap-v2-sdk/actions?query=workflow%3ALint)
[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier)
[![npm version](https://img.shields.io/npm/v/@uniswap/v2-sdk/latest.svg)](https://www.npmjs.com/package/@uniswap/v2-sdk/v/latest)
[![npm bundle size (scoped version)](https://img.shields.io/bundlephobia/minzip/@uniswap/v2-sdk/latest.svg)](https://bundlephobia.com/result?p=@uniswap/v2-sdk@latest)

In-depth documentation on this SDK is available at [uniswap.org](https://uniswap.org/docs/v2/SDK/getting-started/).
npm package: @otklib/direct-server
Description: ## Install
Author: otkd
Latest version: 1.0.2

# @otklib/direct-server

## Install

```bash
$ npm install -S @otklib/direct-server
```

## Usage

```ts
// global
const server = new DirectServer()

// provider
const controller: DirectController<Input, Output> = new SomeController()
server.addHandler<Input, Output>('some-name', controller)

// client
const result: Output = await server.call<Input, Output>('some-name', input)
```

## Run tests

```bash
# unit tests
$ npm run test
```
npm package: @otklib/http-server
Description: ## Install
Author: otkd
Latest version: 1.0.3

# @otklib/http-server

## Install

```bash
$ npm install -S @otklib/http-server
```

## Setup
On the main layer (main file, module, factory, etc)

```ts
const server = HttpServerFactory.createExpressServer()

server.addPlugin(new AuthExpressPlugin(authorizer))
server.addPlugin(new LogExpressPlugin(logger))

server.start(Number(process.env.PORT) || 3000)
```

## AuthExpressPlugin implementation example

```ts
export class AuthExpressPlugin implements HttpPlugin<Express> {
  private authorizer: AuthorizerPort

  constructor(authorizer: AuthorizerPort) {
    this.authorizer = authorizer
  }

  public setup(server: Express) {
    server.use(this.auth.bind(this))
  }

  private auth(req, res, next) {
    const token = this.makeToken(req)
    this.authorizer.authorize(token).then((user) => {
      // write in res.locals
      next()
    })
  }

  private makeToken(req: Request): string {
    // TODO implement using req.query.token, req.headers.authorization, etc
  }
}
```

## LogExpressPlugin implementation example

```ts
export class LogExpressPlugin implements HttpPlugin<Express> {
  constructor(private logger: LoggerPort) {}

  public setup(server: Express) {
    server.use(this.auth.bind(this))
  }

  private auth(req: ExpressRequest, res: ExpressResponse, next: () => void) {
    const startAt = Date.now()
    const { ip, method, path: url, body } = req

    res.on('close', () => {
      const endAt = Date.now()
      const { statusCode } = res
      // const { some props } = res.locals

      this.logger.log({
        ip,
        method,
        url,
        statusCode,
        // some props from res.locals
        body,
        startAt,
        endAt,
        time: endAt - startAt,
      })
    })

    next()
  }
}
```

## Run tests

```bash
# unit tests
$ npm run test
```
npm package: @otklib/queue
Description: ## Install
Author: otkd
Latest version: 1.0.0

# @otklib/queue

## Install

```bash
$ npm install -S @otklib/queue
```

## Usage

Example:

```ts
import { QueueConnector, RabbitQueueConnector, QueuePipe } from '@otklib/queue'

const queueConnection: QueueConnector = new RabbitQueueConnector('amqp://<user>:<pass>@<host>:<port>')

// Pipe
const pipe: QueuePipe = new QueuePipe(queueConnection)
pipe
  .from('test-queue-in')
  .filter(
    async (queue: string, data: any): Promise<any> => {
      console.log('filter', queue, data)
      await new Promise((resolve) => setTimeout(resolve, 1000))
      return data
    },
  )
  .to('test-queue-out')
  .run(5)

// Consumer
queueConnection.subscribe('test-queue-out', async (data) => console.log('consume', data), 10)

// Publisher
for (let i = 0; i < 10; i++) {
  queueConnection.send('test-queue-in', { i })
  console.log('publish', { i })
}
```