Last active
July 10, 2020 11:07
-
-
Save kpunith8/ddc6f48d220f20bc0443665603c097bb to your computer and use it in GitHub Desktop.
Execute js code from gist in a terminal using npx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env node | |
function helloThere(name) { | |
console.log('Hi,', name) | |
} | |
helloThere('Punith K') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "exeute-js-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