{"name":"cheminfo-types","version":"1.5.0","keywords":[],"author":{"name":"cheminfo developers"},"license":"MIT","_id":"cheminfo-types@1.5.0","maintainers":[{"name":"cheminfo-bot","email":"bot+npm-cheminfo@zakodium.com"}],"homepage":"https://github.com/cheminfo/cheminfo-types#readme","bugs":{"url":"https://github.com/cheminfo/cheminfo-types/issues"},"dist":{"shasum":"209a252b009039c6d50ec45d49837db4f22225df","tarball":"http://registry-npm.ywwl.com/cheminfo-types/download/cheminfo-types-1.5.0.tgz","fileCount":5,"integrity":"sha512-zZPrsMr9cazsAGrBJpIzmPReQwB7QJHfCah+Y8We9SZ/3cxl2toMkKCu7YTlkKi3mLOdCj7qgIWWuzjFMFUJpQ==","signatures":[{"sig":"MEYCIQDuGqzP6uaQhCc6E3tTsde3+FwnOgLMIbxwgfU7CAwBGgIhAJKrQPs4+8lZyYw/AZ9m39V60bCTteOjbYMnM2+Bu5T2","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":12762,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkOF2pACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrYSg//TaMZZn4E/RCpJvOT+LJMXNmorP2zB8U57H75Z+lae4n+QJtK\r\nMVfIFqfeNoPccJ94oCgHSTC45x1WSlDSNFCOzLQ5NiibQq2EXu24b2StQkJ0\r\nPvP/ftdFy7YwvBp4yNvtoQAIAencNriPoeGVedK81k1vtCnXVuzZDnFs1LMX\r\nuEGXobuE9cgz0RQEHnn9Yx9Kmsu+85yBcs0qjIhQk+gNpzQFNdtdT+3RxyPR\r\nrQdSHVha9kjP87A+rUiZvx/nCOpvR3UswcvHIjY4vUiry++RaDyKOhW2CgIG\r\nx5/7Wr/4tJ9pdPg969zPAE10gkXIxlDgNwclcZoWEDvHnslI7ggS/56uEcfn\r\nFEsa+XWy0+9FVidmbPjxp2vvzTnqQX+34IQaXpInjzos6Pze3JubPen4JU5v\r\nEp0yXAYHr1EG9P6ER7+xWx04LGu/V+1GefFs5DdLyhhx7dhmqHPtN9/j6JoU\r\n/1Q7A3DIz+QO4YfhFIuA2YEaCxtsbEppUeUilfH4hN93aKC5Leqlw27By9Md\r\ncH1OC9XK3wvUes+WepFsAMTzvoHoAlE0bEznR6l6lV3aLc1P9WNS/qGJ4rMm\r\nLj9L8t1H17TejVa0Gw2tBDoDW2bDb19S6fdIQ+AUqXQmCJE6GCW3W0KCOHMM\r\nl8eda4ynh4iZtso/wQiuyUBX2OrlYmPmAWg=\r\n=0Mmz\r\n-----END PGP SIGNATURE-----\r\n","size":4528,"noattachment":false,"key":"/cheminfo-types/-/cheminfo-types-1.5.0.tgz"},"main":"./index.js","types":"./cheminfoType.d.ts","gitHead":"d935183de7e839a50bd874c5e7b8b779c81e4170","scripts":{"test":"npm run eslint && npm run check-types","eslint":"eslint src --cache","prepack":"find src -name \"*.ts\" -exec grep -v import {} \\; > cheminfoType.d.ts","prettier":"prettier --check src","eslint-fix":"npm run eslint -- --fix","check-types":"tsc --noEmit","generate-json":"ts-node json/buildJSON.ts","precheck-types":"npm run prepack","prettier-write":"prettier --write src"},"_npmUser":{"name":"cheminfo-bot","email":"bot+npm-cheminfo@zakodium.com"},"repository":{"url":"git+https://github.com/cheminfo/cheminfo-types.git","type":"git"},"_npmVersion":"8.19.4","description":"Types for cheminfo packages and cheminfo data schema ","directories":{},"_nodeVersion":"16.20.0","_hasShrinkwrap":false,"devDependencies":{"eslint":"^8.28.0","js-yaml":"^4.1.0","prettier":"^2.7.1","typescript":"^4.9.3","typescript-json-schema":"^0.55.0","eslint-config-cheminfo-typescript":"^11.2.2"},"_npmOperationalInternal":{"tmp":"tmp/cheminfo-types_1.5.0_1681415592974_0.06238510417771481","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":1681415593179,"_cnpm_publish_time":1681415593179,"dist-tags":{"latest":"1.16.0"}}