Socket
Socket
Sign inDemoInstall

cheminfo-types

Package Overview
Dependencies
0
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    cheminfo-types

Types for cheminfo packages and cheminfo data schema


Version published
Weekly downloads
22K
decreased by-27.49%
Maintainers
1
Install size
14.0 kB
Created
Weekly downloads
 

Changelog

Source

1.7.3 (2024-03-12)

Bug Fixes

  • allow all NumberArray in DataXY (#99) (49557ee)

Readme

Source

cheminfo-types

NPM version build status npm download

Types for cheminfo packages and cheminfo data schema.

Key principles:

  • One type should correspond to one React component
  • The schema should not be so complicated that it becomes unusable
  • Use @tjs-examples to give examples that will show in the JSON schema and documentation

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

FAQs

Last updated on 12 Mar 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc