PropelJS / force-harmony

Node Harmony Enforcement for your scripts entry points to ensure generator support

Home Page:http://thotjs.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Node Harmony Enforcement for your scripts entry points to ensure generator support

http://thotjs.io

License:MIT License


Languages

Language:JavaScript 100.0%