parse-ingredient - v2.0.1
    Preparing search index...

    Interface UnitOfMeasure

    Unit of measure properties.

    interface UnitOfMeasure {
        alternates: string[];
        conversionFactor?: number | MultiSystemConversionFactor;
        plural: string;
        short: string;
        type?: UnitType;
    }
    Index

    Properties

    alternates: string[]

    List of all known alternate spellings, abbreviations, etc.

    conversionFactor?: number | MultiSystemConversionFactor

    Conversion factor to base unit (ml for volume, g for mass, mm for length). A number means the same factor applies to all systems. An object with us, imperial, and/or metric keys means the factor differs by system.

    plural: string

    Full name of the unit used when quantity is greater than one.

    short: string

    Abbreviation or short name for the unit.

    type?: UnitType

    The type of measurement (volume, mass, length, count, or other).