Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@babel/plugin-proposal-numeric-separator

Package Overview
Dependencies
Maintainers
4
Versions
56
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@babel/plugin-proposal-numeric-separator

Remove numeric separators from Decimal, Binary, Hex and Octal literals

  • 7.18.6
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
9.8M
decreased by-0.4%
Maintainers
4
Weekly downloads
 
Created

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

The @babel/plugin-proposal-numeric-separator package is a Babel plugin that allows developers to use the numeric separator feature proposed for JavaScript. 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 periods are used in some cultures to separate thousands or denote decimals.

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

Readable large numbers

Improves the readability of large numbers by allowing underscores as separators.

1000000 // Without numeric separator
1_000_000 // With numeric separator

Readable binary numbers

Enhances the readability of binary numbers by permitting underscores between bits.

0b1010101010101010 // Without numeric separator
0b1010_1010_1010_1010 // With numeric separator

Readable hexadecimal numbers

Improves the readability of hexadecimal numbers by allowing underscores between bytes.

0xDEADBEEF // Without numeric separator
0xDEAD_BEEF // With numeric separator

Readable BigInt literals

Enhances the readability of BigInt literals by permitting underscores as separators.

100000000000000000000n // Without numeric separator
100_000_000_000_000_000_000n // With numeric separator

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

Keywords

FAQs

Package last updated on 27 Jun 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

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc