All Projects → vadimdemedes → create-gist

vadimdemedes / create-gist

Licence: MIT license
Create an anonymous GitHub Gist

Programming Languages

javascript
184084 projects - #8 most used programming language

create-gist Build Status

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)'
		}
	]
});
//=> https://gist.github.com/40cd13c18a51ca98c7eebd4cb79c8f95

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

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].