Files
WorkManager/node_modules/acorn-numeric-separator
2024-12-13 08:53:01 +01:00
..
2024-12-13 08:53:01 +01:00
2024-12-13 08:53:01 +01:00
2024-12-13 08:53:01 +01:00
2024-12-13 08:53:01 +01:00
2024-12-13 08:53:01 +01:00
2024-12-13 08:53:01 +01:00
2024-12-13 08:53:01 +01:00
2024-12-13 08:53:01 +01:00

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.