npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

gist-put

v0.5.1

Published

A convenient command line utility for gists

Readme

gist-put

It makes gists out of files! From the command line!

features

  • it takes multiple files, single files, or eventually, no files at all!
  • it doesn't care if you reference files in pwd or in some distant directory (this was a problem with the alternative I tried).
  • it gets your credentials at your already-stated level of security using the git credential tool. If git credential doesn't know your credentials, it'll just prompt you for them. But seriously, life is short, use a helper.

It'll get your OAuth2 token from github, letting them deal with how to store such things securely. Your github credentials are safe the entire time, or no less safe than they were given that git credential will print your password in plain text if you ask nicely.

This module distinguishes itself from the others on npm in that it never asks you to store your github credentials anywhere in plain text, doesn't ask you to edit any files in order to store your api token, and has a better sense of humor. Enjoy!

installation

It currently relies on having git 1.7.12 or greater, so... I kinda bet you need to upgrade.

You'll love it, so why don't you npm install it:

$ npm install -g gist-put

If you ever decide you hate it, npm uninstall ftw!

npm uninstall -g gist-put

And then find gist-put among your authorized apps on github, and remove it from the list.

I guess I could provide a commandline argument for this last step... If this is something you'd like, contact me @AWinterman (on github) or @AndyWinterman (on twitter) and we can work it out. Even better, submit a pull request!

usage

gist-put will make a gist, and print the url to the command line. Eventually this will also put the url in your clipboard, or open a browser window with your gist in it, just the way everybody else's gist utility does. There are options to determine privacy on the gist, and to add a description if you swing that way.

# a private gist
gist-put file

# be descriptive:
gist-put -d 'so many files to gist!'  file

# make it public
gist-put -p file 

# multiple files at once:
gist-put 1-file-to-gist 2-file-to-gist 3-file-to-gist

# make it anonymous
gist-put -a file

# a browser and navigate to your newly created gist.
gist-put -o file

# how bout opening the gist at http://bl.ocks.org/ ?
gist-put -b file

# Or a at requirebin.com:
gist-put -r file

Use it like a module

If for whatever reason you want to play with the constituent pieces, you can do:

gist_put = require("gist-put")

and it won't break everything. However this is not the intended purpose. Maybe one day I'll add some documentation of how the module actually works.