Skip to content

Instantly share code, notes, and snippets.

@tdantas
Last active March 7, 2016 18:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tdantas/3fa70ab8846bb91d0288 to your computer and use it in GitHub Desktop.
Save tdantas/3fa70ab8846bb91d0288 to your computer and use it in GitHub Desktop.
using npm with gist
module.exports = console.log.bind(console, 'hello world');
{
"name": "gist-hello-world",
"version": "1.0.1"
}
@tdantas
Copy link
Author

tdantas commented Mar 7, 2016

NPM

npm install git:gist.github.com/tdantas/3fa70ab8846bb91d0288

Coding

const hello = require('gist-hello-world');
hello();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment