UNPKG

pubchem

Version:

pubchem simplifies the data retrieval from the PubChem API.

19 lines 700 B
import merge from 'deepmerge'; import { parseBoilingPoint } from 'physical-parser'; import { extractExperimentalData } from './extractExperimentalData'; /** * Returns the boiling point of a compound * * @param data Data of a compound data request to the PubChem API * @param options Options for the compound * @returns ExperimentalData */ export function getBoilingPoint(data, options = {}) { const boilingPoint = extractExperimentalData(data, 'Boiling Point', { parser: (value) => parseBoilingPoint(value, merge({ pressure: { defaultValue: 760, defaultUnits: 'torr' }, }, options)), }); return boilingPoint; } //# sourceMappingURL=getBoilingPoint.js.map