{"name":"cheminfo-types","version":"1.2.0","keywords":[],"author":{"name":"cheminfo developers"},"license":"MIT","_id":"cheminfo-types@1.2.0","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":"1ff199aca15a626c4db96fd4b53735dd3a207030","tarball":"http://registry-npm.ywwl.com/cheminfo-types/download/cheminfo-types-1.2.0.tgz","fileCount":5,"integrity":"sha512-MIkKHbWf0VW0Oz7XndN5YUUWPZRJj7c4jcxtJvkeeS7mHogZIJMnrMtBvrok1qM9Y1xor5LXhk2ZRWJCbfNMDg==","signatures":[{"sig":"MEQCIFSBdf4j60IewoVb8Kpx8DIQ/qrUZL6uNOMusA8CD3OlAiBzD5zDc7Ft41wKZxhYxDjx2YvcMvKTg5kMU1yBT8HlSA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":11847,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiwuTwACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoFtw//Y/ALlnnrqDzC1GMaXQJTfikngbLBtXPlDrG5A58qH5gl+pX/\r\njNFFyO478mU3sz8TTPngSlOwUmL2zUq3VefW4xpK0c2+eYlC1cY6mbv4k7y1\r\npSV4PdrdAhPGhGR4jGq5LtQZLlAIgEe/Oj29piRie8DA1yR8Gdv7hQ4AeYTT\r\nt4luHzgn2EXegWU30g7BG1wp2CocMRWafjRo063ns7ktaTlAkYx/xXanefD2\r\n0syz8rhl6Ure4IbiNkGgED0DOSrIWbqxKQPpdHOSQN3YY1y9I8yJDR6uZtyF\r\nv2EErUapIBbIDiF5gE2kIygLb5q/WbscEM3y7tQ6RCFOhiHMpESgGJKIa2yw\r\nfDfpgQCXgtNffA/7wZYulCGpYcIwAFzAzAhki2Nveave3UL22jO+OV9W3UjS\r\nBmfjwd5Ll/SmxfMSPAGu+3J/IaOcQqKdDb2PwWlmavS+JHwwP6QTide3wLSo\r\nUIuA4/CNrS9K6vLlPqOhnZrwKooXV2uHnQCuo8TDhZX98okhMHQjMluUEm23\r\nF8gfPdqpaYOvPFMxDrArvQVqvc/2gzIN9Ad8GRnSQEG7FQyPwLQKlXOPpY4f\r\n69vA7REfPYcw7PV8W+mgd30myQXhbeYKIzqkAYr43lGRGm5mIMizn4+ntTYb\r\nWmhlddf8Qr+tNLPQSaxKEFXAD4lRFS8NpOo=\r\n=r1bE\r\n-----END PGP SIGNATURE-----\r\n","size":4184,"noattachment":false,"key":"/cheminfo-types/-/cheminfo-types-1.2.0.tgz"},"main":"./index.js","types":"./cheminfoType.d.ts","gitHead":"afee1144f8a71fd2d0c801c7a3af564d55867ece","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":"admin@cheminfo.org"},"repository":{"url":"git+https://github.com/cheminfo/cheminfo-types.git","type":"git"},"_npmVersion":"8.11.0","description":"Types for cheminfo packages and cheminfo data schema ","directories":{},"_nodeVersion":"16.15.1","_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_1.2.0_1656939760336_0.4770291492896759","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":1656939760472,"_cnpm_publish_time":1656939760472,"dist-tags":{"latest":"1.16.0"}}