Socket
Socket
Sign inDemoInstall

@babel/plugin-syntax-bigint

Package Overview
Dependencies
54
Maintainers
6
Versions
21
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

@babel/plugin-syntax-bigint

Allow parsing of BigInt literals


Version published
Maintainers
6
Weekly downloads
17,827,789
decreased by-8.88%

Weekly downloads

Package description

What is @babel/plugin-syntax-bigint?

The @babel/plugin-syntax-bigint package allows Babel to parse code that contains the BigInt syntax. BigInt is a built-in object in JavaScript that provides a way to represent whole numbers larger than 2^53 - 1, which is the largest number JavaScript can reliably represent with the Number primitive. This plugin does not transform BigInt syntax, it only enables the parsing of it.

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

BigInt Syntax Parsing

This code demonstrates how a BigInt value is defined using the 'n' suffix. The plugin allows Babel to understand this syntax when parsing the code.

const bigIntValue = 123n;

Other packages similar to @babel/plugin-syntax-bigint

Readme

Source

@babel/plugin-syntax-bigint

Allow parsing of BigInt literals

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

Install

Using npm:

npm install --save-dev @babel/plugin-syntax-bigint

or using yarn:

yarn add @babel/plugin-syntax-bigint --dev

Keywords

FAQs

Last updated on 13 Jan 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