https://github.com/electerm/gitee-js
gitee API wrapper
https://github.com/electerm/gitee-js
Last synced: about 1 year ago
JSON representation
gitee API wrapper
- Host: GitHub
- URL: https://github.com/electerm/gitee-js
- Owner: electerm
- License: mit
- Created: 2020-10-14T13:27:40.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-01-24T05:09:42.000Z (over 5 years ago)
- Last Synced: 2025-03-25T19:21:23.094Z (about 1 year ago)
- Language: TypeScript
- Homepage:
- Size: 223 KB
- Stars: 3
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Gitee API wrapper for JavaScript
[](https://travis-ci.com/electerm/gitee-js)
Gitee gist API wrapper. [api docs](https://gitee.com/api/v5/swagger#/postV5Gists).
## Installation
### Node.js
```bash
npm i gitee-client
```
## Usage
```js
import Gitee from 'gitee-client'
const gc = new Gitee(
GITEE_TOKEN
)
let r = await gc.get('/v5/gists').catch(console.log)
expect(r.data.length > 0).toBe(true)
```
## Test
```bash
cp .sample.env .env
# edit .env fill your github token
npm run test
```
## Credits
Based on [Tyler](https://github.com/tylerlong)'s [https://github.com/tylerlong/ringcentral-js-concise](https://github.com/tylerlong/ringcentral-js-concise).
## License
MIT