Skip to content
Support for numeric separators in acorn
Branch: master
Clone or download
Latest commit 9e2360a Apr 4, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
test Use strict asserts in test Sep 14, 2018
.eslintrc.json Use strict asserts in test Sep 14, 2018
.gitignore Init Dec 20, 2017
CHANGELOG.md 0.3.0 Apr 4, 2019
LICENSE Change license to MIT Sep 14, 2018
README.md Correctly specify stage of proposal as 3 Mar 31, 2019
index.js Make compatible with acorn-bigint Apr 4, 2019
package.json 0.3.0 Apr 4, 2019
run_test262.js Dump dev-dependencies Mar 31, 2019

README.md

Numeric separator support for Acorn

NPM version

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

It implements support for numeric separators as defined in the stage 3 proposal Numeric Separators.

Usage

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

var acorn = require('acorn');
var numericSeparator = require('acorn-numeric-separator');
acorn.Parser.extend(numericSeparator).parse('100_000');

License

This plugin is released under an MIT License.

You can’t perform that action at this time.