aboutsummaryrefslogtreecommitdiff
path: root/node_modules/@babel/helper-wrap-function/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/@babel/helper-wrap-function/README.md')
-rw-r--r--node_modules/@babel/helper-wrap-function/README.md27
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);
+```