create-gist 
Create an anonymous gist
Install
$ npm install create-gist
Usage
const createGist = require('create-gist');
const url = await createGist({
description: 'My lovely gist',
public: false,
files: [
{
name: 'test.js',
source: 't.is(a, b)'
}
]
});
API
createGist(options)
Returns: Promise
options
description
Type: string
Description of the gist.
public
Type: boolean
Default: true
Create a public or private gist.
files
Type: array
Array of objects with name (filename) and source (source of the file) props.
License
MIT © Vadim Demedes