acorn-bigint
Support for BigInt in acorn
Last updated 6 months ago by adrianheine .
MIT · Repository · Bugs · 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 3 proposal BigInt: Arbitrary precision integers in JavaScript. The emitted AST follows an ESTree proposal.

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

  • 0.4.0                                ...           latest (6 months ago)

5 Versions

  • 0.4.0                                ...           6 months ago
  • 0.3.1                                ...           a year ago
  • 0.3.0                                ...           a year ago
  • 0.2.0                                ...           2 years ago
  • 0.1.0                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 57
This Month 102
Last Day 4
Last Week 39
Last Month 179
Dependencies (0)
None
Dev Dependencies (6)

Copyright 2014 - 2017 © taobao.org |