-
-
Save zkat/6b453b0bbb2a752aaa9ece702cb5def2 to your computer and use it in GitHub Desktop.
async cli app boilerplate
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env node | |
if (process.mainModule === module) setImmediate(() => main(process.argv).catch(e => console.log(e.stack) && process.exit(1))) | |
async function main(argv) { | |
console.log(argv.slice(2)) | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"name":"boilerplate", "version":"0.0.0", "bin": "index.js"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment