Skip to content

apaleslimghost/gist-publish-npm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gist-publish-npm

Publish a Gist to npm as a scoped package.

npm install -g gist-publish-npm

Usage

gist-publish-npm [gist-id, ...]

Pass a list of Gist IDs to publish.

This tool assumes:

  • You've already run npm login, or you trust me with your npm login deets and can work out how to pass them in
  • Your Gist has a single .js file
    • That should be the entry point of the module
    • Whose basename should be the name of the module
  • Your Github username is a reasonable thing to use as the package scope

Package versions

Your Gist will be published with the version 1.<number of commits minus one>.0. A Gist with one commit is thus published as 1.0.0.

Dependencies

Any require calls in your main will be added to package.json as dependencies, using the latest published version.

Licence

MIT.

About

Publish a Gist to npm as a scoped package.

Resources

Stars

Watchers

Forks

Packages

No packages published