An open API service indexing awesome lists of open source software.

https://github.com/electerm/electerm-sync

electerm-sync api nodejs wrapper
https://github.com/electerm/electerm-sync

Last synced: 12 days ago
JSON representation

electerm-sync api nodejs wrapper

Awesome Lists containing this project

README

          

# electerm-sync API js wrapper

[English](README.md) | [简体中文](README.cn.md)

## Installation

### Node.js

```bash
npm i electerm-sync
```

## Usage

```js
import { electermSync } from 'electerm-sync'
import axios from 'axios'

// type: 'github', 'gitee', 'custom', 'cloud'
// func: 'test', 'create', 'update', 'getOne'
// args: array of arguments for the function
// token: access token or connection string
const result = await electermSync(
axios.create(),
'github',
'test',
[],
'your-github-token'
)
```

## Test

```bash
npm run test
```

## License

MIT