
Security News
The Changelog Podcast: Practical Steps to Stay Safe on npm
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.
@babel/plugin-syntax-numeric-separator
Advanced tools
Allow parsing of Decimal, Binary, Hex and Octal literals that contain a Numeric Literal 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.
Using npm:
npm install --save-dev @babel/plugin-syntax-numeric-separator
or using yarn:
yarn add @babel/plugin-syntax-numeric-separator --dev
This package not only allows Babel to parse numeric literals with separators but also transforms them into standard JavaScript numbers that can be executed in environments that do not support the numeric separator syntax. It is a step beyond just the syntax plugin, providing both parsing and transformation capabilities.
TypeScript, a superset of JavaScript, includes support for numeric separators. It can parse and emit JavaScript code with or without numeric separators, providing similar functionality to Babel's numeric separator plugins but within the TypeScript language and compiler.
FAQs
Allow parsing of Decimal, Binary, Hex and Octal literals that contain a Numeric Literal Separator
We found that @babel/plugin-syntax-numeric-separator demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 6 open source maintainers collaborating on the project.
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.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.

Security News
Experts push back on new claims about AI-driven ransomware, warning that hype and sponsored research are distorting how the threat is understood.

Security News
Ruby's creator Matz assumes control of RubyGems and Bundler repositories while former maintainers agree to step back and transfer all rights to end the dispute.