{
    "content": [
        {
            "type": "text",
            "text": "# acorn (man)\n\n## NAME\n\nacorn - parse JavaScript file\n\n## SYNOPSIS\n\nacorn [--ecma3 | --ecma5 | --ecma6 | --ecma7 | ... | --ecma2015 | --ecma2016] [--tokenize]\n[--locations] [--allow-hash-bang] [--compact] [--silent] [--module] [--help] [--]\n[infile]\n\n## DESCRIPTION\n\nacorn is a utility to parse a JavaScript file from the command line.  It accepts as arguments\nthe input file.  The utility spits out the syntax tree as JSON data.\n\n## Sections\n\n- **NAME**\n- **SYNOPSIS**\n- **DESCRIPTION**\n- **OPTIONS** (6 subsections)\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "acorn",
        "section": "",
        "mode": "man",
        "summary": "acorn - parse JavaScript file",
        "synopsis": "acorn [--ecma3 | --ecma5 | --ecma6 | --ecma7 | ... | --ecma2015 | --ecma2016] [--tokenize]\n[--locations] [--allow-hash-bang] [--compact] [--silent] [--module] [--help] [--]\n[infile]",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [
            {
                "flag": "",
                "long": "--tokenize",
                "arg": null,
                "description": "Tokenizer mode of the parser."
            },
            {
                "flag": "",
                "long": "--locations",
                "arg": null,
                "description": "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."
            },
            {
                "flag": "",
                "long": "--allow-hash-bang",
                "arg": null,
                "description": "If enabled, skip the leading hashbang line."
            },
            {
                "flag": "",
                "long": "--compact",
                "arg": null,
                "description": "No whitespace is used in the AST output."
            },
            {
                "flag": "",
                "long": "--silent",
                "arg": null,
                "description": "Do not output the AST, just return the exit status."
            },
            {
                "flag": "",
                "long": "--module",
                "arg": null,
                "description": "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 acorn(1)"
            }
        ],
        "examples": [],
        "see_also": [],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 4,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "OPTIONS",
                "lines": 3,
                "subsections": [
                    {
                        "name": "--tokenize",
                        "lines": 2,
                        "long": "--tokenize"
                    },
                    {
                        "name": "--locations",
                        "lines": 3,
                        "long": "--locations"
                    },
                    {
                        "name": "--allow-hash-bang",
                        "lines": 2,
                        "long": "--allow-hash-bang"
                    },
                    {
                        "name": "--compact",
                        "lines": 2,
                        "long": "--compact"
                    },
                    {
                        "name": "--silent",
                        "lines": 2,
                        "long": "--silent"
                    },
                    {
                        "name": "--module",
                        "lines": 6,
                        "long": "--module"
                    }
                ]
            }
        ],
        "sections": {
            "NAME": {
                "content": "acorn - parse JavaScript file\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "acorn [--ecma3 | --ecma5 | --ecma6 | --ecma7 | ... | --ecma2015 | --ecma2016] [--tokenize]\n[--locations] [--allow-hash-bang] [--compact] [--silent] [--module] [--help] [--]\n[infile]\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "acorn is a utility to parse a JavaScript file from the command line.  It accepts as arguments\nthe input file.  The utility spits out the syntax tree as JSON data.\n",
                "subsections": []
            },
            "OPTIONS": {
                "content": "--ecma3, --ecma5, --ecma6, --ecma7, ..., --ecma2015, --ecma2016\nSets the ECMAScript version to parse.  Default is version 7.\n",
                "subsections": [
                    {
                        "name": "--tokenize",
                        "content": "Tokenizer mode of the parser.\n",
                        "long": "--tokenize"
                    },
                    {
                        "name": "--locations",
                        "content": "Attaches  a \"loc\" object to each node with \"start\" and \"end\" subobjects, each of which\ncontains the one-based line and zero-based column numbers in {line, column} form.\n",
                        "long": "--locations"
                    },
                    {
                        "name": "--allow-hash-bang",
                        "content": "If enabled, skip the leading hashbang line.\n",
                        "long": "--allow-hash-bang"
                    },
                    {
                        "name": "--compact",
                        "content": "No whitespace is used in the AST output.\n",
                        "long": "--compact"
                    },
                    {
                        "name": "--silent",
                        "content": "Do not output the AST, just return the exit status.\n",
                        "long": "--silent"
                    },
                    {
                        "name": "--module",
                        "content": "Indicates the code shouldn't be parsed as a script but as a module.   This  influences\nglobal strict mode and 'import' and 'export' declarations.\n\n--help Print the usage information and quit.\n\n1668059290                                     acorn(1)",
                        "long": "--module"
                    }
                ]
            }
        }
    }
}