Created
January 10, 2018 10:21
-
-
Save syzer/a35ed3fae08405e5fc431b89bae74d64 to your computer and use it in GitHub Desktop.
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
if (require.main === module) { | |
console.log('Called from bash') | |
} else { | |
console.log('Called as a module') | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment