Skip to content

Instantly share code, notes, and snippets.

@elijahmanor
Created August 4, 2018 19:18
Show Gist options
  • Save elijahmanor/6330e61bbcfcbf9366d96e4af154f114 to your computer and use it in GitHub Desktop.
Save elijahmanor/6330e61bbcfcbf9366d96e4af154f114 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( "Look Ma, I'm executing JavaScript from a gist inside the terminal with npx!" );
{
"name": "js-from-terminal-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