A helper class for updating a single-file Gist
npm install gist-box📌📋 A helper class for updating a single-file Gist
``sh`
$ npm install gist-box
`js`
const { GistBox } = require('gist-box')
`js`
const box = new GistBox({ id, token })
await box.update({
filename: 'example.md',
description: 'A new description',
content: 'The new content'
})
You can also import some boundary numbers to use when dealing with pinned Gists:
`js``
const {
MAX_LENGTH, // The number of characters rendered in one line
MAX_LINES, // The number of lines it will render
MAX_HEIGHT, // The height of the box, in pixels
MAX_WIDTH // The width of the box, in pixels
} = require('gist-box')
---