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

    Interface IngredientMeta

    Metadata about the parsed ingredient line.

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

    Properties

    sourceIndex: number

    The source index (line number) of the ingredient in the input. Zero-based index relative to the order of non-empty lines.

    sourceText: string

    The source text of the ingredient line before parsing.