This package has been deprecated

Author message:

acorn>=6.2 supports bigint

acorn-bigint

1.0.0 • Public • Published

BigInt support for Acorn

NPM version

This is a plugin for Acorn - a tiny, fast JavaScript parser, written completely in JavaScript.

It implements support for arbitrary precision integers as defined in the stage 4 proposal BigInt: Arbitrary precision integers in JavaScript. The emitted AST follows ESTree.

Usage

This module provides a plugin that can be used to extend the Acorn Parser class:

const {Parser} = require('acorn');
const bigInt = require('acorn-bigint');
Parser.extend(bigInt).parse('100n');

License

This plugin is released under an MIT License.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Published

Version History

  • Version
    Downloads (Last 7 Days)
    • Published

Package Sidebar

Install

npm i acorn-bigint

Weekly Downloads

14,488

Version

1.0.0

License

MIT

Unpacked Size

20.5 kB

Total Files

11

Last publish

Collaborators

  • adrianheine
  • marijn
  • rreverser