1.1.3 • Published 2 years ago

@jsep-plugin/ternary v1.1.3

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

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)