diff options
Diffstat (limited to 'node_modules/@babel/helper-wrap-function/README.md')
| -rw-r--r-- | node_modules/@babel/helper-wrap-function/README.md | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/node_modules/@babel/helper-wrap-function/README.md b/node_modules/@babel/helper-wrap-function/README.md new file mode 100644 index 00000000..25b7eaa2 --- /dev/null +++ b/node_modules/@babel/helper-wrap-function/README.md @@ -0,0 +1,27 @@ +# @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. + +## Example + +**In** + +```js +(function () { +}()); +``` + +**Out** + +```js +_wrapper(function () { +})(); +``` + +## Usage + +```js +import wrapFunction from "@babel/helper-wrap-function"; + +wrapFunction(nodePathOfTheFunction, nodeWhichReferencesToTheWrapper); +``` |
