JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1003454
  • Score
    100M100P100Q207623F
  • License MIT

Adds ternary expression support

Package Exports

  • @jsep-plugin/ternary
  • @jsep-plugin/ternary/dist/cjs/index.cjs.js
  • @jsep-plugin/ternary/dist/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@jsep-plugin/ternary) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

npm size

@jsep-plugin/ternary

A JSEP plugin for adding ternary expression support. Allows expressions of the form:

jsep('a ? 1 : 2');

Install

npm install @jsep-plugin/ternary
# or
yarn add @jsep-plugin/ternary

Usage

import jsep from 'jsep';
import jsepTernary from '@jsep-plugin/ternary';
jsep.plugins.register(jsepTernary);

Meta

LICENSE (MIT)