Skip to content

Instantly share code, notes, and snippets.

@kpunith8
Last active July 10, 2020 11:07
Show Gist options
  • Save kpunith8/ddc6f48d220f20bc0443665603c097bb to your computer and use it in GitHub Desktop.
Save kpunith8/ddc6f48d220f20bc0443665603c097bb to your computer and use it in GitHub Desktop.
Execute js code from gist in a terminal using npx
#!/usr/bin/env node
function helloThere(name) {
console.log('Hi,', name)
}
helloThere('Punith K')
{
"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