3.1.0 • Published 8 years ago

ast-hoist v3.1.0

Weekly downloads
3
License
MIT
Repository
github
Last release
8 years ago

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.

3.1.0

8 years ago

3.0.3

9 years ago

3.0.2

10 years ago

3.0.1

10 years ago

3.0.0

10 years ago

2.0.2

11 years ago

2.0.1

11 years ago

2.0.0

11 years ago

1.0.0

11 years ago