Last active
June 21, 2019 01:32
-
-
Save junosuarez/2aa476de72b48b474c98f58f8d2ab3b9 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