acorn-bigint

Support for BigInt in acorn

acorn>=6.2 supports bigint
Last updated 6 years ago by adrianheine .
MIT · Repository · Original npm · Tarball · package.json
$ cnpm install acorn-bigint 
SYNC missed versions from official npm registry.

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.

Current Tags

  • 1.0.0                                ...           latest (6 years ago)

6 Versions

  • 1.0.0 [deprecated]           ...           6 years ago
  • 0.4.0 [deprecated]           ...           7 years ago
  • 0.3.1 [deprecated]           ...           8 years ago
  • 0.3.0 [deprecated]           ...           8 years ago
  • 0.2.0 [deprecated]           ...           8 years ago
  • 0.1.0 [deprecated]           ...           8 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (0)
None
Dev Dependencies (6)
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |