Package Exports
- gnode
- gnode/bin/gnode
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (gnode) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
gnode
Run node with ES6 Generators
gnode is a very light wrapper around your node executable that ensures ES6
Generator support, either through V8's native support (via the
--harmony_generators flag when necessary, node >= v0.11.3), or falling back to
[facebook/regenerator][regenerator] emulation when no native support is
available (node < v0.11.3).
Installation
Install the gnode executable via npm:
$ npm install -g gnodeCLI Examples
The gnode executable uses whatever version of node is installed in your PATH:
Programmatic API
You can also just require('gnode') in a script without any generators, and
then require() any other .js file that has generators after that.
require('gnode');
var gen = require('./someGenerator');
// etc…