Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 29 lines (21 sloc) 667 Bytes
#!/usr/bin/env bash
# nve usage examples.
# This file can be directly run:
# - first install `nve` globally
# - then `bash node_modules/nve/examples/main.sh`
# An online demo is also available at:
# https://repl.it/@ehmicky/nve
# Ignore the following line: this is only needed for internal purposes.
. "$(dirname "$BASH_SOURCE")/utils.sh"
# Same as `node --version` but with Node 12
nve 12 --version
# Same as `node file.js` but with Node 8
nve 8 file.js
# Any Node CLI flag can be used
nve 8 --print 'process.version'
# Run a specific version
nve 8.10.0 --version
# Run the latest Node version
nve '*' --version
# Use a version range
nve '<8' --version
You can’t perform that action at this time.