ast-hoist

hoist your variables (and function declarations)

Showing:

Popularity

Downloads/wk

17

GitHub Stars

6

Maintenance

Last Commit

6yrs ago

Contributors

3

Package

Dependencies

1

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

ast-hoist

Hoists your variable and function declarations. Consumes/produces Mozilla ASTs.

API

hoist(Node, recurse = false) -> Node

Returns a new AST with all variable declarations hoisted into a single var statement at the start of the scope, and all function declarations hoisted right after it. If recurse is truthy, it will recurse to cover every scope in the AST.

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100