项目
在 GitHub 查看
jlongster/es6-macros
关于
一组使用 sweet.js 宏为 ES5 实现 ES6 特性的宏集合
其他项目实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文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 ofsupport - 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
探索相关项目
加载中…