BABELJS-PARSER(1)

NAME
babeljs-parser - dump the Babel AST of a JavaScript file

SYNOPSIS
babeljs-parser FILE

DESCRIPTION
Parse FILE with the Babel parser and print the resulting abstract syntax tree on the standard output, as JSON in the ESTree-like format used by Babel.

The parser is used with its default options, so FILE must be a JavaScript module; syntax that requires a plugin, such as JSX or TypeScript, is not accepted.

This command takes no option. It is mostly a debugging helper: to transform files, use babeljs(1) instead.

SEE ALSO
babeljs(1), babeljs-node(1)

The full documentation of the parser is available at https://babeljs.io/docs/babel-parser.