es6-macros
A collection of sweet.js macros that implement ES6 features for ES5
Last updated 6 years ago by jlongster .
BSD · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install es6-macros 
SYNC missed versions from official npm registry.

es6-macros

This is a collection of sweet.js macros that implement syntactic ES6 features that can be easily compiled out to ES5 JavaScript, which can be used today everywhere.

Warning: This is still in development and most of these features are not completely compliant with ES6 yet. I wouldn't recommend using it for production code yet.

Currently implemented:

  • destructuring (including elision and rest)
  • classes
  • fat arrow functions

TODO:

  • rest and default arguments
  • spread operator for applying arguments
  • possibly limited for of support
  • possibly limited module support

Using

$ npm install sweet.js es6-macros

Write your improved ES6 JavaScript, and compile it:

$ sjs -m es6-macros file.js

If you pass -c to sjs along with -o output.js, it will generate a sourcemap so you get good debugging too!

Contributing

To run the tests:

npm install
make

Current Tags

  • 0.0.7                                ...           latest (6 years ago)

7 Versions

  • 0.0.7                                ...           6 years ago
  • 0.0.6                                ...           6 years ago
  • 0.0.5                                ...           6 years ago
  • 0.0.4                                ...           6 years ago
  • 0.0.3                                ...           6 years ago
  • 0.0.2                                ...           7 years ago
  • 0.0.1                                ...           7 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 8
Last Day 0
Last Week 7
Last Month 0
Dependencies (0)
None
Dev Dependencies (5)

Copyright 2014 - 2016 © taobao.org |