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,27 +1,19 @@
|
||||
# @babel/helper-wrap-function
|
||||
|
||||
This helper wraps a function within a call expression. It works with any function: statements, expressions and methods; both named and anonymous.
|
||||
> Helper to wrap functions inside a function call.
|
||||
|
||||
## Example
|
||||
See our website [@babel/helper-wrap-function](https://new.babeljs.io/docs/en/next/babel-helper-wrap-function.html) for more information.
|
||||
|
||||
**In**
|
||||
## Install
|
||||
|
||||
```js
|
||||
(function () {
|
||||
}());
|
||||
Using npm:
|
||||
|
||||
```sh
|
||||
npm install --save @babel/helper-wrap-function
|
||||
```
|
||||
|
||||
**Out**
|
||||
or using yarn:
|
||||
|
||||
```js
|
||||
_wrapper(function () {
|
||||
})();
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
```js
|
||||
import wrapFunction from "@babel/helper-wrap-function";
|
||||
|
||||
wrapFunction(nodePathOfTheFunction, nodeWhichReferencesToTheWrapper);
|
||||
```sh
|
||||
yarn add --save @babel/helper-wrap-function
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user