Running a node script on your $PATH with --harmony flag
npm packaged scripts are written as frameworks that dynamically
require user node scripts, e.g. the
gulp CLI script
requires the user provided
Gulpfile.js (by default).
.js using ES6 syntax is problematic; if the $PATH script for a framework
x looks like
#!/usr/bin/env node var x = require('x'); ... require('./x.js')(x);
how can we provide a
x.js written in ES6?
node --harmony `which <script>` [args]
You want to write your tape
test.js written or depending on in ES6/2015 JS
node --harmony `which tape` test.js