Socket
Socket
Sign inDemoInstall

@babel/plugin-syntax-bigint

Package Overview
Dependencies
54
Maintainers
6
Versions
21
Alerts
File Explorer

Advanced tools

Install Socket

Protect your apps from supply chain attacks

Install

@babel/plugin-syntax-bigint

Allow parsing of BigInt literals

    7.8.3latest
    GitHub
    npm

Version published
Maintainers
6
Weekly downloads
19,455,125
increased by2.65%

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 installs a GitHub app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the 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