makestatic-parse-js

1.0.29 • Public • Published

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 for acorn and escodegen.
Options
  • parser Object options to pass to acorn.
  • serializer Object options to pass to escodegen.

License

MIT


Created by mkdoc on March 12, 2017

Package Sidebar

Install

npm i makestatic-parse-js

Weekly Downloads

4

Version

1.0.29

License

MIT

Last publish

Collaborators

  • muji
  • tmpfs