@cbevins/variant

0.1.1 • Public • Published

cbevins/variant

A Variable is an object with a unique name, a value, and a reference to a Variant type. The Variant type provides the Variable with:

  • value input text filtering,
  • value input text transformation into the Variant's native storage type,
  • native value validation,
  • native value transformation into other units-of-measure or text representation,
  • decoration of the displayed output value (with units-of-measure or other prefixes or suffixes).

Many Variables may share the same Variant. In fire behavior modeling, for example, many spread rate variables share the FireSpreadRate Variant, which is derived from the Quantity Variant.

/@cbevins/variant/

    Package Sidebar

    Install

    npm i @cbevins/variant

    Weekly Downloads

    1

    Version

    0.1.1

    License

    MIT

    Unpacked Size

    287 kB

    Total Files

    7

    Last publish

    Collaborators

    • cbevins