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
- Host: GitHub
- URL: https://github.com/electerm/electerm-sync
- Owner: electerm
- License: mit
- Created: 2023-07-07T00:56:30.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-08-11T11:29:22.000Z (almost 2 years ago)
- Last Synced: 2025-09-30T22:39:30.818Z (10 months ago)
- Language: TypeScript
- Size: 363 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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