Skip to content

Instantly share code, notes, and snippets.

@pauldougan
Last active April 23, 2024 22:20
Show Gist options
  • Save pauldougan/45e7e9324257a9b34d1f051b7805e513 to your computer and use it in GitHub Desktop.
Save pauldougan/45e7e9324257a9b34d1f051b7805e513 to your computer and use it in GitHub Desktop.
Run node.js from gist

Run node.js from a gist

npx https://gist.github.com/pauldougan/45e7e9324257a9b34d1f051b7805e513

#!/usr/bin/env node
console.log("I was executed from a gist inside the terminal with npx!");
{
"name": "pd-run-node-from-npx",
"version": "0.1.0",
"bin": "./index.js"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment