Last active
June 3, 2025 09:11
-
-
Save frank-dspeed/942237811b60caa0d17eb89816178bf3 to your computer and use it in GitHub Desktop.
Run
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 | |
console.log("Look Ma, I'm executing JavaScript from a gist inside the terminal with npx!"); | |
console.log(process.argv); |
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": "js-from-terminal-with-npx", | |
"version": "1.8.8", | |
"bin": "./index.js" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
above method is only great for one time installers it will install the repo in a temp folder always
else prefer
rerun npm i from time to time for updates