Package Exports
- acorn-numeric-separator
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (acorn-numeric-separator) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Numeric separator support for Acorn
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.
You can either choose to use it via CommonJS (for example in Node.js) like this
const {Parser} = require('acorn');
const numericSeparator = require('acorn-numeric-separator');
Parser.extend(numericSeparator).parse('100_000');or as an ECMAScript module like this:
import {Parser} from 'acorn';
import numericSeparator from 'acorn-numeric-separator';
Parser.extend(numericSeparator).parse('100_000');License
This plugin is released under an MIT License.