Have ideas to improve npm?Join in the discussion! »

    babel-plugin-syntax-optional-chaining

    7.0.0-alpha.13 • Public • Published

    babel-plugin-syntax-optional-chaining

    Allow parsing of optional properties.

    Installation

    npm install --save-dev babel-plugin-syntax-optional-chaining

    Usage

    Via .babelrc (Recommended)

    .babelrc

    {
      "plugins": ["syntax-optional-chaining"]
    }

    Via CLI

    babel --plugins syntax-optional-chaining script.js

    Via Node API

    require("babel-core").transform("code", {
      plugins: ["syntax-optional-chaining"]
    });

    Keywords

    Install

    npm i babel-plugin-syntax-optional-chaining

    DownloadsWeekly Downloads

    3,726

    Version

    7.0.0-alpha.13

    License

    MIT

    Last publish

    Collaborators

    • avatar
    • avatar
    • avatar
    • avatar