Socket
Book a DemoInstallSign in
Socket

create-gist

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

create-gist

Create an anonymous GitHub Gist

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

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

Keywords

github

FAQs

Package last updated on 18 Jul 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts