You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
326 B
Markdown
22 lines
326 B
Markdown
6 years ago
|
# babel-helpers
|
||
|
|
||
|
> Collection of helper functions used by Babel transforms.
|
||
|
|
||
|
## Install
|
||
|
|
||
|
```sh
|
||
|
npm install --save-dev babel-helpers
|
||
|
```
|
||
|
|
||
|
## Usage
|
||
|
|
||
|
```js
|
||
|
import * as helpers from 'babel-helpers';
|
||
|
import * as t from 'babel-types';
|
||
|
|
||
|
const typeofHelper = helpers.get('typeof');
|
||
|
|
||
|
t.isExpressionStatement(typeofHelper);
|
||
|
// true
|
||
|
```
|