@jsep-plugin/ternary
TypeScript icon, indicating that this package has built-in type declarations

1.1.4 • Public • Published

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)

Readme

Keywords

none

Package Sidebar

Install

npm i @jsep-plugin/ternary

Weekly Downloads

544,725

Version

1.1.4

License

MIT

Unpacked Size

23.4 kB

Total Files

16

Last publish

Collaborators

  • 6utt3rfly
  • leaverou
  • smekkie
  • soney