Socket
Book a DemoInstallSign in
Socket

@cfware/acorn-optional-chaining

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cfware/acorn-optional-chaining

Support for optional chaining in acorn

latest
Source
npmnpm
Version
0.1.0
Version published
Maintainers
1
Created
Source

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.

FAQs

Package last updated on 07 Apr 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts