Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hemanth/broccoli-es6-arrow
ES6 arrow functions compiled to ES5 compliant code.
https://github.com/hemanth/broccoli-es6-arrow
Last synced: 3 months ago
JSON representation
ES6 arrow functions compiled to ES5 compliant code.
- Host: GitHub
- URL: https://github.com/hemanth/broccoli-es6-arrow
- Owner: hemanth
- Created: 2014-02-24T13:02:26.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2023-12-01T15:12:34.000Z (about 1 year ago)
- Last Synced: 2024-05-19T05:22:20.900Z (8 months ago)
- Language: JavaScript
- Size: 10.7 KB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 12
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
- es6-tools - broccoli-es6-arrow
README
# [broccoli](https://github.com/joliss/broccoli)-fat-arrow [![Build Status](https://travis-ci.org/hemanth/broccoli-es6-arrow.svg?branch=master)](https://travis-ci.org/hemanth/broccoli-fat-arrow)
> Compiles ES6 arrow functions to ES5 compliant code
```js
[1, 2, 3].map(n => n * 2);
```compiles to this:
```js
[1, 2, 3].map(function(n) { return n * 2; });
```## Install
```
npm install --save broccoli-es6-arrow
```## Example
```js
var md = require('broccoli-es6-arrow');
tree = md(tree);
```## License
MIT © [Hemanth.HM](http://h3manth.com)