-
-
Save soomtong/e5a61ca2ee122a16e487a276ce53230e 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