Github gist API wrapper. api docs.
npm i gist-wrapper
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)
cp .sample.env .env
# edit .env fill your github token
npm run test
Based on Tyler's https://github.com/tylerlong/ringcentral-js-concise.
MIT