open-index/open-npm huggingface dataset:
npm package: @magicjs/json-schema-faker
Description: JSON-Schema + fake data generators
Author: Alvaro Cabrera
Latest version: 0.0.2

# @magicjs/json-schema-faker

## Use

```bash
yarn add @magicjs/json-schema-faker
```

> Usage info from README.md was moved to `docs/`, [read more](docs/).

## Contributors

### We are looking for your help!
npm package: @magicjs/swagen
Description: Swagen koa api & web sdk & postman json for openapi
Latest version: 0.1.3

# @magicjs/swagen

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

## Install

```bash
yarn global add @magicjs/swaggen
```

## Usage

```sh
$ swagen -h

Usage: swagen [command]

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

Commands:
  koa      Generate code for koa server api
  sdk [options]      Generate code for client sdk
  postman [options]  Transform openapi file to postman collection file
```

### Generate client sdk code

```sh
$ swagen sdk -h

Usage: sdk [options] [openapiYmlFile] [name] [dist]

Generate code for client sdk

Options:
  -h, --help  output usage information


# example, default name is filename of yaml file or specified by name option
$ swagen sdk ./petstore.yaml ./sdk petstore
```

### Generate koa server api code

```sh
$ swagen koa -h

Usage: koa [options] [openapiYmlFile] [dist]

Generate code for koa server api

Options:
  -h, --help  output usage information


# example, if dist not specified, current dir will be used as default dist
$ swagen koa ./petstore.yaml ./koa
```

### Generate postman collection from openapi

````sh
$ swagen postman -h

Usage: postman [options] [openapiYmlFile] [targetFile]

Transform openapi file to postman collection file

Options:
  -h, --help  output usage information
```


More about **json-server** you can see [here](https://github.com/typicode/json-server)

### Use remote file

```sh
# set name with 'petstore'
swagen sdk https://api.36node.com/petstore/v0/openapi.yaml . petstore
````

## Contributing

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

## Add new template

1. Add new generator js file in src/generators, filename is the template name.
2. In new generator js file， export default function which generate template.
npm package: @magicjs/xlsx-toolkits
Description: A toolkits for read and write xlsx
Latest version: 0.0.8

# @magicjs/xlsx-toolkits

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

## Install

```bash
yarn add @magicjs/xlsx-toolkits
```

## Usage

```js
import { readXlsx, writeXlsx } from "@magicjs/xlsx-toolkits";

// module();
//=> foo
```

## 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/template-module.svg?style=flat
[1]: https://npmjs.com/package/@36node/template-module
[2]: https://img.shields.io/npm/dm/@36node/template-module.svg?style=flat
[3]: https://npmjs.com/package/@36node/template-module
npm package: @magickbase/p
Description: ## Usage with tRPC
Author: homura.dev@gmail.com
Latest version: 0.0.6

# Magickbase Platform API

## Usage with tRPC

```ts
import { TRPCRouter } from '@magickbase/p';
import { createTRPCClient, httpBatchLink } from '@trpc/client';
import SuperJSON from 'superjson';

const client = createTRPCClient<TRPCRouter>({
  links: [
    httpBatchLink({
      url: `https://api-endpoint.domain/api/trpc`,
      transformer: SuperJSON,
      headers: {
        Authorization: `Bearer <my-token>`,
      },
    }),
  ],
});
```

It is recommended to use tRPC and TypeScript to interact with the platform API for a better development experience

![](./assets/p-client.gif)

## Import this Repo

```json
{
  "dependencies": {
    "@magickbase/p": "github:magickbase/platform-api"
  }
}
```