aswi2020vldc-gitlab/templetes/node_modules/babel-helpers/README.md @ 8db0bbf6
1 |
# babel-helpers
|
---|---|
2 |
|
3 |
> Collection of helper functions used by Babel transforms.
|
4 |
|
5 |
## Install
|
6 |
|
7 |
```sh |
8 |
npm install --save-dev 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 |
```
|