You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 7-8.RSVP
Socket
Socket
Sign inDemoInstall

@babel/node

Package Overview
Dependencies
Maintainers
4
Versions
114
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@babel/node

Babel command line


Version published
Weekly downloads
662K
decreased by-5.05%
Maintainers
4
Install size
5.90 MB
Created
Weekly downloads
 

Package description

What is @babel/node?

@babel/node is a command-line tool that allows you to use Babel to compile and run JavaScript code on the fly. It is particularly useful for running scripts and applications written in ES6+ syntax without needing to precompile them.

What are @babel/node's main functionalities?

Running ES6+ scripts

This feature allows you to run JavaScript files that use ES6+ syntax directly. The `babel-node` command compiles the code on the fly and executes it.

babel-node script.js

REPL with ES6+ support

You can start a REPL (Read-Eval-Print Loop) with ES6+ support by simply running `babel-node` without any arguments. This allows you to interactively write and test ES6+ code.

babel-node

Using Babel plugins and presets

You can specify Babel plugins and presets to customize the compilation process. For example, using the `@babel/preset-env` preset ensures that your code is transpiled to be compatible with the current environment.

babel-node --presets @babel/preset-env script.js

Other packages similar to @babel/node

Changelog

Source

v7.20.5 (2022-11-28)

:eyeglasses: Spec Compliance
  • babel-helpers, babel-plugin-transform-destructuring, babel-plugin-transform-modules-commonjs, babel-preset-env, babel-runtime-corejs2, babel-runtime-corejs3, babel-runtime, babel-traverse
    • #15183 Improve array destructuring spec compliance (@SuperSodaSea)
  • babel-cli, babel-helpers, babel-plugin-proposal-class-properties, babel-plugin-proposal-class-static-block, babel-plugin-transform-classes, babel-plugin-transform-runtime, babel-preset-env
    • #15182 fix: apply toPropertyKey when defining class members (@JLHwung)
  • babel-helper-create-class-features-plugin, babel-helpers, babel-plugin-proposal-decorators, babel-plugin-proposal-private-property-in-object, babel-preset-env, babel-runtime-corejs2, babel-runtime-corejs3, babel-runtime
:bug: Bug Fix
  • babel-parser
  • babel-helper-wrap-function, babel-preset-env, babel-traverse
  • babel-plugin-transform-arrow-functions, babel-plugin-transform-parameters, babel-traverse
    • #15163 fix: Throw error when compiling super() in arrow functions with default / rest parameters (@SuperSodaSea)
  • babel-helpers, babel-node, babel-plugin-proposal-async-generator-functions, babel-plugin-transform-regenerator, babel-preset-env, babel-runtime-corejs2, babel-runtime-corejs3, babel-runtime
  • babel-helper-create-regexp-features-plugin
  • babel-parser, babel-types
  • babel-generator
  • babel-plugin-transform-block-scoping, babel-traverse
:nail_care: Polish
  • babel-generator
  • babel-plugin-transform-block-scoping
:house: Internal

Readme

Source

@babel/node

Babel command line

See our website @babel/node for more information.

Install

Using npm:

npm install --save-dev @babel/node

or using yarn:

yarn add @babel/node --dev

Keywords

FAQs

Package last updated on 28 Nov 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc