New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@babel/plugin-syntax-bigint

Package Overview
Dependencies
Maintainers
6
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@babel/plugin-syntax-bigint

Allow parsing of BigInt literals

7.8.3
latest
Source
npm
Version published
Weekly downloads
24M
-0.5%
Maintainers
6
Weekly downloads
 
Created

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

Keywords

babel-plugin

FAQs

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