In order to use es6, we pass the harmony flag in the command line
node --harmony myscript.js
Is there a way to do this from inside the file, such as use harmony
?
#! /usr/bin/node
use harmony
class MyScript {
constructor (options) {
this.options = options;
}
get options () {
return this.options
}
}