acorn-bigint

Support for BigInt in acorn

acorn>=6.2 supports bigint
Last updated 5 months 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 (5 months ago)

6 Versions

  • 1.0.0 [deprecated]           ...           5 months ago
  • 0.4.0 [deprecated]           ...           2 years ago
  • 0.3.1 [deprecated]           ...           2 years ago
  • 0.3.0 [deprecated]           ...           2 years ago
  • 0.2.0 [deprecated]           ...           3 years ago
  • 0.1.0 [deprecated]           ...           3 years ago
Downloads
Today 91
This Week 173
This Month 1,674
Last Day 82
Last Week 593
Last Month 1,421
Dependencies (0)
None
Dev Dependencies (6)

Copyright 2014 - 2016 © taobao.org |