0.1.0 • Published 4 years ago

@cfware/acorn-optional-chaining v0.1.0

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

Optional Chaining Support for Acorn

NPM version

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

Purpose of this fork

This fork exists to enable compatibility with rollup 2.x. This will be deprecated and archived once compatibility is merged upstream.

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.