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

1.1.3 • 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

462,204

Version

1.1.3

License

MIT

Unpacked Size

22.3 kB

Total Files

15

Last publish

Collaborators

  • 6utt3rfly
  • leaverou
  • smekkie
  • soney