Skip to content

Instantly share code, notes, and snippets.

@benjaminblack
Last active November 16, 2018 16:58
Show Gist options
  • Save benjaminblack/3766c12dc68688bb89d7ff451db9e93d to your computer and use it in GitHub Desktop.
Save benjaminblack/3766c12dc68688bb89d7ff451db9e93d to your computer and use it in GitHub Desktop.
Run JavaScript in the terminal from a gist with npx
#!/usr/bin/env node
console.log('gist');
{
"name": "js-from-term-with-npx",
"version": "1.0.0",
"bin": "./index.js"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment