Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

20 Commits

Repository files navigation

node6

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

Deprecated

Use 6to5 instead, it does the job and is fantastic.

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.jslettest=function*(){yield3;yield4};module.exports=test()
// index.jsrequire('node6')(__dirname)// enable node6 for this module (but not inner node_modules)vart=require('./mymodule')console.log(t.next().value)// 3console.log(t.next().value)// 4

About

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

Resources

Stars

7 stars

Watchers

3 watching

Forks

Releases

Packages

Contributors

Languages