Skip to content

Latest commit

 

History

History
40 lines (29 loc) · 553 Bytes

File metadata and controls

40 lines (29 loc) · 553 Bytes

electerm-sync API js 封装

English | 简体中文

安装

Node.js

npm i electerm-sync

使用

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

// type: 'github', 'gitee', 'custom', 'cloud'
// func: 'test', 'create', 'update', 'getOne'
// args: 函数参数数组
// token: 访问令牌或连接字符串
const result = await electermSync(
  axios.create(),
  'github',
  'test',
  [],
  'your-github-token'
)

测试

npm run test

证书

MIT