@nao20010128nao/acorn-optional-chaining
v0.0.5
Published
Support for optional chaining in acorn
Downloads
3
Readme
Optional Chaining Support for Acorn
This is a plugin for Acorn - a tiny, fast JavaScript parser, written completely in JavaScript.
Usage
This module provides a plugin which extends the Acorn Parser
class to handle optional chaining:
import * as acorn from 'acorn';
import optionalChaining from 'acorn-optional-chaining';
acorn.Parser.extend(optionalChaining).parse('a?.b?.c');
License
This plugin is released under an MIT License.
It was based off the structure of acorn-numeric-separator
.