🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

@babel/plugin-syntax-numeric-separator

Package Overview
Dependencies
Maintainers
6
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

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

7.10.4
latest
Source
npm
Version published
Weekly downloads
27M
-8.68%
Maintainers
6
Weekly downloads
 
Created

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

Keywords

babel-plugin

FAQs

Package last updated on 30 Jun 2020

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