A brief example on how to use npx
to run gist based scripts.
Read the article here https://neutrondev.com/npm-vs-npx-whats-the-difference/ or watch it on YouTube https://www.youtube.com/watch?v=fSHWc8RTJug
A brief example on how to use npx
to run gist based scripts.
Read the article here https://neutrondev.com/npm-vs-npx-whats-the-difference/ or watch it on YouTube https://www.youtube.com/watch?v=fSHWc8RTJug
#!/usr/bin/env node | |
console.log("I was executed from a gist inside the terminal with npx!"); |
{ | |
"name": "run-js-with-npx-from-gist", | |
"version": "1.0.0", | |
"bin": "./index.js" | |
} |
Thanks very much,I'll try to resolve this.
Thanks very much,I'll try to resolve this.