pubchem
Version:
pubchem simplifies the data retrieval from the PubChem API.
16 lines (13 loc) • 421 B
text/typescript
import type { DataType } from '../CompoundData.js';
import { getFormula } from './getFormula.js';
import { getInChI } from './getInChI.js';
import { getInChIKey } from './getInChIKey.js';
import { getSMILES } from './getSMILES.js';
export function getIdentifiers(data: DataType) {
return {
formula: getFormula(data),
inchi: getInChI(data),
inchiKey: getInChIKey(data),
smiles: getSMILES(data),
};
}