parse-ingredient - v3.0.0
    Preparing search index...

    Interface IngredientMeta

    Metadata about the parsed ingredient line.

    interface IngredientMeta {
        sourceIndex: number;
        sourceText: string;
    }
    Index
    sourceIndex: number

    The source index (line number) of the ingredient in the input. Zero-based index of the line (or array element) in the original input; empty lines are not parsed, but they do consume an index.

    sourceText: string

    The source text of the ingredient line before parsing.