Man page - acorn(1)
Packages contas this manual
- node-acorn-globals
- node-acorn-loose
- node-acorn-bigint
- node-acorn-static-class-features
- node-acorn-import-assertions
- node-acorn-private-class-elements
- node-acorn-class-fields
- node-acorn-node
- node-acorn-walk
- node-acorn-private-methods
- node-acorn-numeric-separator
- node-acorn-export-ns-from
- node-acorn-dynamic-import
- node-acorn
- node-acorn-jsx
- node-acorn-import-meta
Package: node-acorn
apt-get install node-acorn
apt-get install node-acorn
Manuals in package:
Documentations in package:
Manual
| acorn(1) | acorn(1) |
NAME
acorn - parse JavaScript file
SYNOPSIS
acorn
[--ecma3 | --ecma5 | --ecma6 | --ecma7 |
... | --ecma2015 | --ecma2016] [--tokenize]
[--locations] [--allow-hash-bang] [--compact]
[--silent] [--module] [--help] [--]
[infile]
DESCRIPTION
acorn is a utility to parse a JavaScript file from the command line. It accepts as arguments the input file. The utility spits out the syntax tree as JSON data.
OPTIONS
- --ecma3, --ecma5, --ecma6, --ecma7, ..., --ecma2015, --ecma2016
- Sets the ECMAScript version to parse. Default is version 7.
- --tokenize
- Tokenizer mode of the parser.
- --locations
- Attaches a "loc" object to each node with "start" and "end" subobjects, each of which contains the one-based line and zero-based column numbers in {line, column} form.
- --allow-hash-bang
- If enabled, skip the leading hashbang line.
- --compact
- No whitespace is used in the AST output.
- --silent
- Do not output the AST, just return the exit status.
- --module
- Indicates the code shouldn't be parsed as a script but as a module. This influences global strict mode and 'import' and 'export' declarations.
- --help
- Print the usage information and quit.
| 1668059290 |