Class: SubstanceLibraryKeeper

SubstanceLibraryKeeper(jsonData)

Manages a library of known substances with flexible name matching.

Constructor

new SubstanceLibraryKeeper(jsonData)

Creates a new SubstanceLibraryKeeper.
Parameters:
Name Type Description
jsonData Object JSON object mapping substance names to GWP values.
Source:

Methods

getSubstance(name) → {KnownSubstance|null}

Gets a substance by name using flexible matching.
Parameters:
Name Type Description
name string The substance name to look up.
Source:
Returns:
The substance if found, null otherwise.
Type
KnownSubstance | null