{
    "mode": "man",
    "parameter": "BABEL-NODE.JS",
    "section": "1",
    "url": "https://www.chedong.com/phpMan.php/man/BABEL-NODE.JS/1/json",
    "generated": "2026-11-10T10:44:10Z",
    "synopsis": "babel-node [options] [ -e script | script.js ] [arguments]",
    "sections": {
        "NAME": {
            "content": "babel-node.js - CLI that works exactly the same as the Node.js CLI, with the added benefit of\ncompiling with Babel presets and plugins before running it\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "babel-node [options] [ -e script | script.js ] [arguments]\n",
            "subsections": []
        },
        "OPTIONS": {
            "content": "",
            "subsections": [
                {
                    "name": "-e --eval",
                    "content": "Evaluate script\n",
                    "flag": "-e",
                    "long": "--eval"
                },
                {
                    "name": "--no-babelrc",
                    "content": "Specify whether or not to use .babelrc and .babelignore files\n",
                    "long": "--no-babelrc"
                },
                {
                    "name": "-r --require",
                    "content": "Require module\n",
                    "flag": "-r",
                    "long": "--require"
                },
                {
                    "name": "-p --print",
                    "content": "Evaluate script and print result\n",
                    "flag": "-p",
                    "long": "--print"
                },
                {
                    "name": "-o --only",
                    "content": "A comma-separated list of glob patterns to compile\n",
                    "flag": "-o",
                    "long": "--only"
                },
                {
                    "name": "-i --ignore",
                    "content": "A comma-separated list of glob patterns to skip compiling\n",
                    "flag": "-i",
                    "long": "--ignore"
                },
                {
                    "name": "-x --extensions",
                    "content": "List of extensions to hook into [.es6,.js,.es,.jsx,.mjs]\n\n--config-file [path]\nPath to the babel config file to use. Defaults to working directory babel.config.js\n\n--env-name [name]\nThe  name  of the 'env' to use when loading configs and plugins. Defaults to the value\nof BABELENV, or else NODEENV, or else 'development'.\n\n--root-mode [mode]\nThe project-root resolution mode. One of  'root'  (the  default),  'upward',  or  'up‐\nward-optional'.\n",
                    "flag": "-x",
                    "long": "--extensions"
                },
                {
                    "name": "-w --plugins",
                    "content": "",
                    "flag": "-w",
                    "long": "--plugins"
                },
                {
                    "name": "-b --presets",
                    "content": "",
                    "flag": "-b",
                    "long": "--presets"
                },
                {
                    "name": "-V --version",
                    "content": "output the version number\n",
                    "flag": "-V",
                    "long": "--version"
                },
                {
                    "name": "-h --help",
                    "content": "display help for command\n\nbabel-node.js 7.20.15+ds1+~cs214.269.168    February 2024                           BABEL-NODE.JS(1)",
                    "flag": "-h",
                    "long": "--help"
                }
            ]
        }
    },
    "summary": "babel-node.js - CLI that works exactly the same as the Node.js CLI, with the added benefit of compiling with Babel presets and plugins before running it",
    "flags": [
        {
            "flag": "-e",
            "long": "--eval",
            "arg": null,
            "description": "Evaluate script"
        },
        {
            "flag": "",
            "long": "--no-babelrc",
            "arg": null,
            "description": "Specify whether or not to use .babelrc and .babelignore files"
        },
        {
            "flag": "-r",
            "long": "--require",
            "arg": null,
            "description": "Require module"
        },
        {
            "flag": "-p",
            "long": "--print",
            "arg": null,
            "description": "Evaluate script and print result"
        },
        {
            "flag": "-o",
            "long": "--only",
            "arg": null,
            "description": "A comma-separated list of glob patterns to compile"
        },
        {
            "flag": "-i",
            "long": "--ignore",
            "arg": null,
            "description": "A comma-separated list of glob patterns to skip compiling"
        },
        {
            "flag": "-x",
            "long": "--extensions",
            "arg": null,
            "description": "List of extensions to hook into [.es6,.js,.es,.jsx,.mjs] --config-file [path] Path to the babel config file to use. Defaults to working directory babel.config.js --env-name [name] The name of the 'env' to use when loading configs and plugins. Defaults to the value of BABELENV, or else NODEENV, or else 'development'. --root-mode [mode] The project-root resolution mode. One of 'root' (the default), 'upward', or 'up‐ ward-optional'."
        },
        {
            "flag": "-w",
            "long": "--plugins",
            "arg": null,
            "description": ""
        },
        {
            "flag": "-b",
            "long": "--presets",
            "arg": null,
            "description": ""
        },
        {
            "flag": "-V",
            "long": "--version",
            "arg": null,
            "description": "output the version number"
        },
        {
            "flag": "-h",
            "long": "--help",
            "arg": null,
            "description": "display help for command babel-node.js 7.20.15+ds1+~cs214.269.168 February 2024 BABEL-NODE.JS(1)"
        }
    ],
    "examples": [],
    "see_also": [],
    "tldr": {
        "source": "not_found",
        "examples": []
    }
}