makestatic-parse-js
v1.0.29
Published
Parses javascript files to an abstract syntax tree
Downloads
1
Readme
Parse JS
Parse JS files to an AST
Parses JS output files to an abstract syntax tree.
Install
yarn add makestatic-parse-js
API
ParseScript
Parses javascript files to abstract syntax trees.
See Also
.sources
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.
file
Object the current file.context
Object the processing context.options
Object options foracorn
andescodegen
.
Options
parser
Object options to pass toacorn
.serializer
Object options to pass toescodegen
.
License
MIT
Created by mkdoc on March 12, 2017