babel-helper-wrap-function
Helper to wrap functions inside a function call.
Last updated 8 years ago by hzoo .
MIT · Repository · Original npm
$ cnpm install babel-helper-wrap-function 
SYNC missed versions from official npm registry.

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

(function () {
}());

Out

_wrapper(function () {
})();

Usage

import wrapFunction from "babel-helper-wrap-function";

wrapFunction(nodePathOfTheFunction, nodeWhichReferencesToTheWrapper);

Current Tags

  • 7.0.0-alpha.16                                ...           latest (8 years ago)
  • 7.0.0-beta.3                                ...           next (8 years ago)

2 Versions

  • 7.0.0-alpha.16                                ...           8 years ago
  • 7.0.0-beta.3                                ...           8 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (4)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2013 - present © cnpmjs.org