parse-js

Parses javascript files to an abstract syntax tree.

Parses javascript files to abstract syntax trees.

ParseHtml.prototype.sources(file, context[, options])

Parse a file to an abstract syntax tree, the parsed AST is assigned to file.ast.js.

This implementation assigns a seal function to the file so that when the file content is updated it will correspond to the current state of the AST.