Last active
March 30, 2021 03:40
-
-
Save ziyoung/78c3e2baabf82b0ab7b6654b56402e75 to your computer and use it in GitHub Desktop.
Shebang and common snippet
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 | |
console.log('cli application'); | |
process.on('rejectionHandled', error => { | |
throw error; | |
}); |
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 bash | |
set -Eeuo pipefail | |
# use shell check to help you write bash https://www.shellcheck.net/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment