Skip to content

Instantly share code, notes, and snippets.

@i-have-no-name
Last active January 28, 2021 18:48
Show Gist options
  • Save i-have-no-name/b67b1509360d4166ff68d9981ada72be to your computer and use it in GitHub Desktop.
Save i-have-no-name/b67b1509360d4166ff68d9981ada72be to your computer and use it in GitHub Desktop.
npx-node
#!/usr/bin/env node
const fs = require('fs');
console.log('*'.repeat(20));
console.log(fs.readdirSync('./app'));
console.log(process.env);
console.log('*'.repeat(20));
{
"name": "run-js-with-npx-from-gist",
"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