open-index/open-npm huggingface dataset:
npm package: @rocket-scripts/electron
Description: [![NPM](https://img.shields.io/npm/v/@rocket-scripts/web.svg)](https://www.npmjs.com/package/@rocket-scripts/web) [![NPM](https://img.shields.io/npm/v/@rocket-scripts/electron.svg)](https://www.npmjs.com/package/@rocket-scripts/electron) [![TEST](https://
Author: SSen
Latest version: 3.2.0
npm package: @rocket-scripts/mockup
Description: ```ts import { createMockupServer } from '@rocket-scripts/mockup'
Author: SSen
Latest version: 0.3.0

# `@rocket-scripts/mockup`

```ts
import { createMockupServer } from '@rocket-scripts/mockup'

describe('example', () => {
  const server = createMockupServer()
  
  beforeAll(async () => {
    await server.start((router) => {
      router.get('/api', async (ctx) => {
        ctx.body = 'ok';
      })
    })
  })

  afterAll(async () => {
    await server.stop()
  })
  
  test('should get ok', async () => {
    const body: string = await fetch(`${server.getBasePath()}/api`).then(res => res.text())
  
    expect(body).toBe('ok')
  })
})
```
npm package: @rocket-scripts/openapi
Description: ## Install and Generate Clients
Author: SSen
Latest version: 0.3.0

# OpenAPI TypeScript Fetch Generator

## Install and Generate Clients

Install

```sh
npm install @rocket-scripts/openapi
```

Generate TypeScript Clients

```json
{
  "scripts": "openapi-typescript-generator -i your-openapi-spec.yaml -o src/client"
}
```

## Use Generated Clients

See detail: <https://github.com/rocket-hangar/openapi-typescript-generator/tree/master/reference/src/basic>

```ts
import { APIExceptionError } from '@rocket-scripts/openapi';
import { defaultApi, SomeData, SomeException } from './client';

const config = {
  basePath: server.getBasePath(),
};

try {
  const result: SomeData = await defaultApi.someGet(config);
  console.log(result.hello);
} catch (error: unknown) {
  if (error instanceof APIExceptionError) {
    const exception: SomeException = error.exception;
    console.error(exception);
  }
}
```

## Reorganize Composition

```ts
import { APIExceptionError, pipe, fetchRequest } from '@rocket-scripts/openapi';
import { defaultApi, SomeData } from './client';

const config = {
  basePath: server.getBasePath(),
};

const result: SomeData = await pipe(
  defaultApi.someGetRequest(config),
  fetchRequest(),
  defaultApi.someGetReponse(),
)();

// or

const result: SomeData = await pipe(
  fetchRequest(),
  defaultApi.someGetReponse(),
)({ url: 'http://custom/url/path', init: {} });

// or

const response: Response = await pipe(
  defaultApi.someGetRequest(config),
  fetchRequest(),
)();
```

## Take Serialize data with Response

```ts
import {
  APIExceptionError,
  pipe,
  fetchRequest,
  takeResponse,
} from '@rocket-scripts/openapi';
import { defaultApi, SomeData } from './client';

const config = {
  basePath: server.getBasePath(),
};

const { value, response }: { value: SomeData; response: Response } = await pipe(
  defaultApi.someGetRequest(config),
  fetchRequest(),
  takeResponse(defaultApi.someGetReponse()),
)();
```
npm package: @rocket-scripts/web
Description: [![NPM](https://img.shields.io/npm/v/@rocket-scripts/web.svg)](https://www.npmjs.com/package/@rocket-scripts/web) [![NPM](https://img.shields.io/npm/v/@rocket-scripts/electron.svg)](https://www.npmjs.com/package/@rocket-scripts/electron) [![TEST](https://
Author: SSen
Latest version: 3.2.0
npm package: @rocket-slate/editor
Description: A rich text editor based on SlateJS framework
Author: Glebtv
Latest version: 0.2.17

## RocketSlate main package

## Readme

See root package readme at: [rocket-slate](https://github.com/rs-pro/rocket-slate)

## License

MIT License
Copyright (c) 2019 glebtv

Includes icons from [google material-design-icons](https://github.com/google/material-design-icons) [Apache 2.0 license](https://github.com/google/material-design-icons/blob/master/LICENSE)
npm package: @rocket-slate/table
Description: Table plugin for Rocket Slate editor
Author: Glebtv
Latest version: 0.2.17

## RocketSlate table

## Readme

See root package readme at: [rocket-slate](https://github.com/rs-pro/rocket-slate)

## License

Apache 2.0 License
Copyright (c) 2019 glebtv

Based on [slate-deep-table](https://github.com/jasonphillips/slate-deep-table)
npm package: @rocket-team/less
Description: rocket 样式函数库
Author: qinmudi
Latest version: 0.0.2

# @rocket-team/less-lib
- `rocket-team`团队通用`less`样式库，包括变量、重置、混合等能力。

## 安装
```
npm i @rocket-team/less-lib
```

## 使用
``` vue
<style lang="less">
    @import '~@rocket-team/less-lib/less/_rocket.less'
</style>
```

## 开发文档
[](https://rocket-less.wiiqq.com)