{"name":"cheminfo-types","version":"1.7.1","keywords":[],"author":{"name":"cheminfo developers"},"license":"MIT","_id":"cheminfo-types@1.7.1","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":"ffe11676b29f3243cf2db189ba5a9d06542ea52b","tarball":"http://registry-npm.ywwl.com/cheminfo-types/download/cheminfo-types-1.7.1.tgz","fileCount":5,"integrity":"sha512-YNNDOld9kCTw6FM7en156XBAzvNgUEAGJ5eoqIF+AxJPsY/ICM3niFw2VIx9DfMF0ybHKgY/E1EYKboV1gbBVA==","signatures":[{"sig":"MEUCIH1g3t21KeEGfu2snMLbXGL26GaGnAHqqaTqFevU9Q4UAiEA0b/aPi6LvE7UXS2UTRFSFZYqaPn99MPNnwxxesx66PU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":14175,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkS8IUACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp02g//aqN2ROPaUlKlphCeg4T/tqWa0zOW9biuw1oDLtlxi1XY5G7R\r\njgsREzaaxzQ9Q5KRdEE+eD3uWxT+YnhjxA8kSrR/ACOQcFflUzOikR6X/4dO\r\nzrti0c+ld9cya2WdLhkXRqu+euYiNvyc9iKKNM6UPFDhrHr+s53NV9sXTt3s\r\nsyhdJvuXr9Awu4webbkb28SYVSlUbxrEJb3ve1NJJSJDvVdEeNX12Jd/2UWa\r\nyv+7le9DxJ90AS0zGqXSKAe2j28+NwQL9QF6jSx/7vJxbi6Sv+WIM7mMy7eY\r\nOjacAMewMb3m03oYxJuQ2C+zJMaOPltD/q87EQnRrzii97N6nTa2/9txnY8N\r\nbkaODND9hOtuP8ZG9zI68JmQ9/1lykg4IdOa9Q8V8v39jydlrn6BTJHVJdYu\r\n4gUruJ8V69rb+R+RXQvxmMEkVpJNrdkQnG+V59DEeSYS3vjpIZNI7c2f4wGq\r\nF9FrlhSApeMfI6PFvX9oTdV4B8GueVi8nUbvTbVw1csJvkqn0p+pJMSeXbGb\r\nWctA/nboPr6jsWzED6er9rDotZg6i/lAxrZG241JNdEoI3wnjrlZ/zQH60Nc\r\n3HKs5OaS7wxH3DuCE84Nn+qiE5Ha+IkJMiku6MTFxS4p54pkJkUCwKH+7oMk\r\nGME/fQ+5Bh3vXi5h8xw+m1Gfr2cnx9YnSrI=\r\n=ctCW\r\n-----END PGP SIGNATURE-----\r\n","size":4804,"noattachment":false,"key":"/cheminfo-types/-/cheminfo-types-1.7.1.tgz"},"main":"./index.js","types":"./cheminfoTypes.d.ts","gitHead":"f24261a362d7eb04e112e983c459525dcfe843cd","scripts":{"test":"npm run test-only && npm run eslint && npm run check-types","eslint":"eslint src --cache","prepack":"find src -name \"*.ts\" -exec grep -v import {} \\; > cheminfoTypes.d.ts","prettier":"prettier --check src","test-only":"tsd","eslint-fix":"npm run eslint -- --fix","check-types":"tsc --noEmit","pretest-only":"npm run prepack","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":{"tsd":"^0.28.1","pino":"^8.11.0","eslint":"^8.39.0","js-yaml":"^4.1.0","prettier":"^2.8.8","typescript":"^5.0.4","typescript-json-schema":"^0.56.0","eslint-config-cheminfo-typescript":"^11.3.1"},"_npmOperationalInternal":{"tmp":"tmp/cheminfo-types_1.7.1_1682686483760_0.6303175702913393","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":1682686483993,"_cnpm_publish_time":1682686483993,"dist-tags":{"latest":"1.16.0"}}