Last active
December 21, 2016 18:00
-
-
Save ronanyeah/c2e17f840083df85fe512deafa6f64e5 to your computer and use it in GitHub Desktop.
supercharge your node repl
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
#!/bin/bash | |
# Notes: | |
# - Requires Node.js to be managed by nvm. | |
# - Can require packages that are globally or locally installed. | |
NODE_PATH=$(realpath ${NVM_BIN}/../lib/node_modules) node -e "require(\"/path/to/file.js\")" -i |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment