gist-wrapper
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

Github Gist Client for JavaScript

Build Status

Github gist API wrapper. api docs.

Installation

Node.js

npm i gist-wrapper

Usage

import GistWrapper from 'gist-wrapper'

const gc = new GistWrapper(
  GITHUB_TOKEN,
  userAgentHeaderString
)
let r = await gc.get('/gists/public').catch(console.log)
expect(r.data.length > 0).toBe(true)

// quick methods
gc.getOne(gistId)
gc.create(gistData)
gc.update(gistId, gistData)
gc.delOne(gistId)

Test

cp .sample.env .env
# edit .env fill your github token
npm run test

Credits

Based on Tyler's https://github.com/tylerlong/ringcentral-js-concise.

License

MIT

Package Sidebar

Install

npm i gist-wrapper

Weekly Downloads

68

Version

1.0.0

License

MIT

Unpacked Size

17 kB

Total Files

19

Last publish

Collaborators

  • zxdong262