Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/apaleslimghost/gist-publish-npm
Publish a Gist to npm as a scoped package.
https://github.com/apaleslimghost/gist-publish-npm
Last synced: 14 days ago
JSON representation
Publish a Gist to npm as a scoped package.
- Host: GitHub
- URL: https://github.com/apaleslimghost/gist-publish-npm
- Owner: apaleslimghost
- Created: 2015-05-15T17:40:53.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2018-12-18T14:19:03.000Z (almost 6 years ago)
- Last Synced: 2024-03-28T14:44:05.468Z (8 months ago)
- Language: JavaScript
- Homepage:
- Size: 77.1 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 7
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# 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](https://docs.npmjs.com/misc/scope)## Package versions
Your Gist will be published with the version `1..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.