Skip to content

Instantly share code, notes, and snippets.

@wmantly
Last active July 31, 2019 00:22
Show Gist options
  • Save wmantly/31ccb15b02d92a3620e53cc821f7b7f6 to your computer and use it in GitHub Desktop.
Save wmantly/31ccb15b02d92a3620e53cc821f7b7f6 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
# Place this file in /usr/bin/node-async-interactive
# Run `chmod +x /usr/bin/node-async-interactive` to make it executable
# Usage `node-async-interactive node_file.js` will drop you in a interactive node REPL
node --experimental-repl-await -i -e "$(< $1)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment