Socket
Socket
Sign inDemoInstall

@babel/plugin-syntax-numeric-separator

Package Overview
Dependencies
54
Maintainers
6
Versions
40
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @babel/plugin-syntax-numeric-separator

Allow parsing of Decimal, Binary, Hex and Octal literals that contain a Numeric Literal Separator


Version published
Maintainers
6
Install size
8.92 kB
Created

Package description

What is @babel/plugin-syntax-numeric-separator?

The @babel/plugin-syntax-numeric-separator package allows Babel to parse JavaScript code that uses the numeric separator feature. This feature enables developers to make their numeric literals more readable by creating a visual separation between groups of digits, similar to how commas or spaces are used in human-readable numbers.

What are @babel/plugin-syntax-numeric-separator's main functionalities?

Parsing Numeric Literals with Underscore Separators

This feature allows developers to include underscores in numeric literals as separators to enhance readability without affecting the underlying value.

1000000 // without numeric separator
1_000_000 // with numeric separator

Other packages similar to @babel/plugin-syntax-numeric-separator

Readme

Source

@babel/plugin-syntax-numeric-separator

Allow parsing of Decimal, Binary, Hex and Octal literals that contain a Numeric Literal Separator

See our website @babel/plugin-syntax-numeric-separator for more information.

Install

Using npm:

npm install --save-dev @babel/plugin-syntax-numeric-separator

or using yarn:

yarn add @babel/plugin-syntax-numeric-separator --dev

Keywords

FAQs

Last updated on 30 Jun 2020

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc