Hi!
try passing the URL for this gist to npx
.
#!/usr/bin/env node | |
console.log('yay gist'); | |
const { version, name } = require('./package.json'); | |
console.log(version, name); | |
console.log(process.cwd()); | |
console.log(__dirname); |
{"name": "npx-is-cool", "version": "0.0.0", "bin": "./index.js"} |