Skip to content

Latest commit

 

History

History
40 lines (29 loc) · 578 Bytes

File metadata and controls

40 lines (29 loc) · 578 Bytes

electerm-sync API js wrapper

English | 简体中文

Installation

Node.js

npm i electerm-sync

Usage

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

npm run test

License

MIT