thot-harmony
v0.1.0
Published
Enforce harmony support on your entry points to ensure generator support
Downloads
2
Readme
thot-harmony
Node Harmony Enforcement for your scripts entry points
Usage
require('thot-harmony')();
require('some-script-that-needs-harmony');
Note
While this module will allow you to run harmony on any script you include if you use generators or other syntax that is unavailable without the harmony flag in the entry point of your application the interpreter will still throw an error
To use it properly create a dummy entry point that requires this module and then require your real entry point
This module was built for node 0.11 to make it so that there wasn't a need to type --harmony each time but you can use it with 0.10 as well to enable other features by just changing what the file is testing for harmony support