cheminfo / cheminfo-types

https://cheminfo.github.io/cheminfo-types/
MIT License
2 stars 3 forks source link
chemistry data hacktoberfest schema typescript

cheminfo-types

NPM version build status npm download

Types for cheminfo packages and cheminfo data schema.

Key principles:

Installation

$ npm i cheminfo-types

Usage

See example ``` import type { MeasurementXY } from 'cheminfo-types'; const measurements: MeasurementXY[] = []; const xAxis = { label: 'time', units: 's', isDependent: false, data: [1, 2, 3], }; const yAxis = { label: 'current', units: 'mA', isDependent: true, data: [0.1, 8, 13], }; const firstMeasurement: MeasurementXY = { title: 'Current Monitoring', variables: { x: xAxis, y: yAxis }, }; measurements.push(firstMeasurement); ```

License

MIT