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

@babel/plugin-transform-numeric-separator

Package Overview
Dependencies
Maintainers
4
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@babel/plugin-transform-numeric-separator

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

  • 7.25.9
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
8.4M
decreased by-50.39%
Maintainers
4
Weekly downloads
 
Created

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

The @babel/plugin-transform-numeric-separator package allows developers to use numeric separators in their JavaScript code to improve readability of numeric literals. This plugin transforms these numeric literals with separators into standard numeric literals that can be understood by JavaScript engines that do not support this ES2021 feature.

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

Transforming large numeric literals

Improves readability of large numeric literals by allowing underscores as separators.

1000000000 // Before transformation
1_000_000_000 // After using @babel/plugin-transform-numeric-separator

Support for various numeric types

Allows numeric separators in binary, octal, and hexadecimal literals, enhancing clarity in different numeric systems.

0b1010_0101_1001 // binary
0o2_3_5_7 // octal
0xdead_beef // hexadecimal

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

Keywords

FAQs

Package last updated on 22 Oct 2024

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