{"library":"ternary","type":"library","category":null,"description":"This utility package generates a string representing a JavaScript ternary conditional statement (`condition ? whenTruthy : whenFalsy`). It is currently at version 1.0.0, published over a decade ago in 2013, indicating it is no longer actively maintained. The package functions as a basic string concatenation tool for programmatically constructing conditional expressions, rather than providing any runtime evaluation capabilities. Its core differentiator is its singular focus on producing a standard ternary operator string, which can be useful in scenarios requiring dynamic code generation or templating where the resulting expression needs to be embedded into a larger script. It offers no advanced parsing, validation, or execution features, simply combining three input strings into the 'condition ? expr1 : expr2' format.","language":"javascript","status":"abandoned","version":"1.0.0","tags":["javascript","ternary","code","js"],"last_verified":"Wed May 27","install":[{"cmd":"npm install ternary","imports":["const ternary = require('ternary')"]},{"cmd":"yarn add ternary","imports":[]},{"cmd":"pnpm add ternary","imports":[]}],"homepage":null,"github":"https://github.com/bendrucker/ternary","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/ternary","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/ternary/compatibility"}}