gist-it
Create a GitHub Gist from a text file.
Last updated 3 months ago by rem .
MIT · Repository · Bugs · Original npm · Tarball
$ cnpm install gist-it 
SYNC missed versions from official npm registry.

gist-it

NPM version NPM downloads CircleCI donate

gist

Why do we need this?

When I ran into some issues and got a error.log, the best way to report bugs is gist-it error.log and post the link to it on the issue you created.

Install

yarn global add gist-it
# OR
npm i -g gist-it

Usage

gist-it ./npm.log
gist-it lib/foo.js bin/bar.js

# or even glob
gist-it "*.js" "css/*.css"

gist-it --help

By default the gist will be published anonymously, to publish it under your account, you need to generate an access token at https://github.com/settings/tokens/new, remember to select gist scope:

gist-scope

Then set it in gist-it:

gist-it --set-token $the_token_you_just_generated

Update an exising gist

To update an exisitng gist, append the command with --id existing-gist-id.

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

Author

gist-it © egoist, Released under the MIT License.
Authored and maintained by egoist with help from contributors (list).

egoistian.com · GitHub @egoist · Twitter @rem_rin_rin

Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (10)
Dev Dependencies (3)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |