Henry Zhu e86f62b304 README: add --save-dev [skip ci]
Closes gh-4910
2016-11-29 08:40:27 -05:00

36 lines
478 B
Markdown

# babel-plugin-transform-function-bind
Compile function bind operator to ES5
## Installation
```sh
npm install --save-dev babel-plugin-transform-function-bind
```
## Usage
### Via `.babelrc` (Recommended)
**.babelrc**
```json
{
"plugins": ["transform-function-bind"]
}
```
### Via CLI
```sh
babel --plugins transform-function-bind script.js
```
### Via Node API
```javascript
require("babel-core").transform("code", {
plugins: ["transform-function-bind"]
});
```