acorn-stage3
v4.0.0
Published
Support for stage 3 proposals in acorn
Downloads
526,296
Readme
stage 3 proposal support for Acorn
This is a plugin for Acorn - a tiny, fast JavaScript parser, written completely in JavaScript.
It implements support for all missing ECMAScript stage 3 proposals. Neither loose mode nor walk are currently supported.
- Numeric Separators via acorn-numeric-separator
- Class field declarations via acorn-class-fields
- Private methods and getter/setters for JavaScript classes via acorn-private-methods
- Static class features via acorn-static-class-features
- Logical assignments via acorn-logical-assignment
Usage
This module provides a plugin that can be used to extend the Acorn Parser
class:
const {Parser} = require('acorn');
const stage3 = require('acorn-stage3');
Parser.extend(stage3).parse('100_000n');
License
This plugin is released under an MIT License.