1 | # babel-helpers
|
2 |
|
3 | > Collection of helper functions used by Babel transforms.
|
4 |
|
5 | ## Install
|
6 |
|
7 | ```js
|
8 | $ npm install babel-helpers
|
9 | ```
|
10 |
|
11 | ## Usage
|
12 |
|
13 | ```js
|
14 | import * as helpers from 'babel-helpers';
|
15 | import * as t from 'babel-types';
|
16 |
|
17 | const typeofHelper = helpers.get('typeof');
|
18 |
|
19 | t.isExpressionStatement(typeofHelper);
|
20 | // true
|
21 | ```
|