Package Exports
- @putout/engine-parser
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@putout/engine-parser) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
putout-engine-parser

putout plugin adds ability to find and remove debugger statement.
Install
npm i @putout/engine-parserAPI
print(ast)
Print code from ast
parse(code)
You can add default options for custom parser you use.
parse.fresh(code)
parse without memoise
Supported parsers:
Example
parse.ast(template)
create node using memoization.
parse.ast.fresh(template)
create node without memoization.
Any parser should be installed before use, but you can be shure that @babel/parse always installed.
const {parse} = require('@putout/engin-parser');
const parser = 'acorn';
const code = parse('var t = "hello"', {
parser,
});License
MIT