package
Babel require hook with whitelist of transpilers for es6 features that node 0.12 with harmony flag does not support
npm install node-babelGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Babel require hook with whitelist of transpilers for es6 features that node 0.12 with harmony flag does not support.
Usage:
require('node-babel')();or
require('node-babel')(options);Same options as in babel are supported but if no options are passed only the following transpilers are whitelisted (so none of es6 features supported with --harmony flag will be transpiled):
You can whitelist additional transpilers by passing options or exclude any of the above by blacklisting them.