Refactor move docs (#8108)
* feat: [skip] generate readme script * docs: [skip ci] update READMEs * docs: [skip ci] fix code block type * chore: [skip ci] move generator script
This commit is contained in:
@@ -1,35 +1,19 @@
|
||||
# @babel/plugin-syntax-nullish-coalescing-operator
|
||||
|
||||
> Allow parsing of the nullish-coalescing operator.
|
||||
> Allow parsing of the nullish-coalescing operator
|
||||
|
||||
## Installation
|
||||
See our website [@babel/plugin-syntax-nullish-coalescing-operator](https://new.babeljs.io/docs/en/next/babel-plugin-syntax-nullish-coalescing-operator.html) for more information.
|
||||
|
||||
## Install
|
||||
|
||||
Using npm:
|
||||
|
||||
```sh
|
||||
npm install --save-dev @babel/plugin-syntax-nullish-coalescing-operator
|
||||
npm install --save @babel/plugin-syntax-nullish-coalescing-operator
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
### Via `.babelrc` (Recommended)
|
||||
|
||||
**.babelrc**
|
||||
|
||||
```json
|
||||
{
|
||||
"plugins": ["@babel/plugin-syntax-nullish-coalescing-operator"]
|
||||
}
|
||||
```
|
||||
|
||||
### Via CLI
|
||||
or using yarn:
|
||||
|
||||
```sh
|
||||
babel --plugins @babel/plugin-syntax-nullish-coalescing-operator script.js
|
||||
```
|
||||
|
||||
### Via Node API
|
||||
|
||||
```javascript
|
||||
require("@babel/core").transform("code", {
|
||||
plugins: ["@babel/plugin-syntax-nullish-coalescing-operator"]
|
||||
});
|
||||
yarn add --save @babel/plugin-syntax-nullish-coalescing-operator
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user