This package has been deprecated

Author message:

Superseded by 6to5, it's great! https://6to5.org/

node6

1.0.0 • Public • Published

node6

hacking all the transpilers and polyfills together to transparently support much es6 in node

CLI

> node6 es6app.js
> node6 -e "{let test = function *() {yield 3; yield 4}; let t = test(); console.log(t.next().value, t.next().value);}"
3 4

MODULE

// mymodule.js
 
let test = function *() {yield 3; yield 4};
module.exports = test()
 
// index.js
require('node6')(__dirname) // enable node6 for this module (but not inner node_modules)
var t = require('./mymodule')
console.log(t.next().value) // 3
console.log(t.next().value) // 4
 

Readme

Keywords

none

Package Sidebar

Install

npm i node6

Weekly Downloads

3

Version

1.0.0

License

ISC

Last publish

Collaborators

  • timoxley