{"name":"cheminfo-types","version":"0.10.1","keywords":[],"author":{"name":"cheminfo developers"},"license":"MIT","_id":"cheminfo-types@0.10.1","maintainers":[{"name":"cheminfo-bot","email":"admin@cheminfo.org"}],"homepage":"https://github.com/cheminfo/cheminfo-types#readme","bugs":{"url":"https://github.com/cheminfo/cheminfo-types/issues"},"dist":{"shasum":"82610769c718b06d39c62fc99569eedc907e80e0","tarball":"http://registry-npm.ywwl.com/cheminfo-types/download/cheminfo-types-0.10.1.tgz","fileCount":23,"integrity":"sha512-uZbjO2iYWoSySHO2ZSBNLfAIW9StInkS8ZPXUMDBPHEPLr6ikjQz1e9ELDWp63MSMwrpn+JlWdj10kEU6DvNEw==","signatures":[{"sig":"MEUCIEVbOW9aiRlUZPBZ/f64uUuiM3cyHtFtqXz2hioiFNktAiEAnGNt7HPD2aRLMjbuIl2EvAqsqlwQHXL/i1GCNDS16iY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":12624,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJiBfbMCRA9TVsSAnZWagAAG4oP/37gdI0brEhNxZWgNVf3\nbbJEXw7Yu5L3IwzlUE1E8HpUeO1NTJ+9CO1987DscBP9a+qmlkcpjGBFcGfD\nMp4Y97lXqLwIsCE1zhnSNYjV5BjD+8YxGgAHqMdf4qc0oMnk5TYGh1qLbzJD\nfribeH4G2kY6E7Z6LmlZ5UVneYi4PyTXMuOgfHqF9eiLNxwGH4X2nVaj1eoa\n6ICxEAbpmoyiOQeZ3yim5mMzKueSDtJl+GMUGFtQCcyxte9nePL7iegendTk\n/kaeI0a2Hf6Q0N0+NfyUBE07r2vljE2z/eodhbOubjbOTXenznYKWC7C0nU6\ncLngXUXiveztzUI9ReyNdpjvCTCGVZLDmfNDa7zXRsBVV46c+k0lsoGl4W5c\nUFqCnM4Dse/96+1fvRpknKH5qJrSWfZLdlWDtPLjHUlpEa5fauEjq6tZCA4a\n3OnMClDA7v7D791gq9cxZZ1toEeYVypzlLgUzIiLrEhn/ZJmK1JWfKxUgvtL\nL4G0ZIm7Pkgf2BCZvikiYiFetliSwQa69x5TBOj8iT1L9vVCWUNDrlK1cFIq\n/cnjE8BxMetongt5B7sjb62PPpcE6ow47RuZU+AP9/JjF9eP6Ssm/9nWufv6\nDbHAy/7+s247QMIwoI1s3ly+UF9hvxwic6YbvYnWQY7ISPg4x0DxyML0SHKl\nGrhr\r\n=QcQm\r\n-----END PGP SIGNATURE-----\r\n","size":4720,"noattachment":false,"key":"/cheminfo-types/-/cheminfo-types-0.10.1.tgz"},"main":"./src/index.d.ts","types":"./src/index.d.ts","gitHead":"07e1f1194feb22813ce013a7eda59c21259641a1","scripts":{"test":"npm run eslint && npm run check-types","eslint":"eslint src --cache","prettier":"prettier --check src","eslint-fix":"npm run eslint -- --fix","check-types":"tsc --noEmit","generate-json":"ts-node json/buildJSON.ts","prettier-write":"prettier --write src"},"_npmUser":{"name":"cheminfo-bot","email":"admin@cheminfo.org"},"repository":{"url":"git+https://github.com/cheminfo/cheminfo-types.git","type":"git"},"_npmVersion":"8.1.2","description":"Types for cheminfo packages and cheminfo data schema ","directories":{},"_nodeVersion":"16.13.2","_hasShrinkwrap":false,"devDependencies":{"eslint":"^8.1.0","js-yaml":"^4.1.0","prettier":"^2.4.1","typescript":"^4.4.4","typescript-json-schema":"^0.51.0","eslint-config-cheminfo-typescript":"^10.2.2"},"_npmOperationalInternal":{"tmp":"tmp/cheminfo-types_0.10.1_1644558027944_0.15279212784712226","host":"s3://npm-registry-packages"},"readme":"# cheminfo-types\n\n[![NPM version][npm-image]][npm-url]\n[![build status][ci-image]][ci-url]\n[![npm download][download-image]][download-url]\n\nTypes for cheminfo packages and cheminfo data schema.\n\n__Key principles:__ \n- One type should correspond to one React component \n- The schema should not be so complicated that it becomes unusable \n- Use `@tjs-examples` to give examples that will show in the JSON schema and documentation\n\n## Installation\n\n`$ npm i cheminfo-types`\n\n## Usage\n\n<details>\n\n<summary>See example</summary>\n\n```\nimport type { MeasurementXY } from 'cheminfo-types';\n\nconst measurements: MeasurementXY[] = [];\nconst xAxis = {\n  label: 'time',\n  units: 's',\n  isDependent: false,\n  data: [1, 2, 3],\n};\nconst yAxis = {\n  label: 'current',\n  units: 'mA',\n  isDependent: true,\n  data: [0.1, 8, 13],\n};\nconst firstMeasurement: MeasurementXY = {\n  title: 'Current Monitoring',\n  variables: { x: xAxis, y: yAxis },\n};\nmeasurements.push(firstMeasurement);\n```\n\n</details>\n\n## License\n\n[MIT](./LICENSE)\n\n[npm-image]: https://img.shields.io/npm/v/cheminfo-types.svg\n[npm-url]: https://www.npmjs.com/package/cheminfo-types\n[ci-image]: https://github.com/cheminfo/cheminfo-types/workflows/Node.js%20CI/badge.svg?branch=main\n[ci-url]: https://github.com/cheminfo/cheminfo-types/actions?query=workflow%3A%22Node.js+CI%22\n[download-image]: https://img.shields.io/npm/dm/cheminfo-types.svg\n[download-url]: https://www.npmjs.com/package/cheminfo-types\n","publish_time":1644558028078,"_cnpm_publish_time":1644558028078,"dist-tags":{"latest":"1.16.0"}}