{"name":"cheminfo-types","version":"0.4.0","keywords":[],"author":{"name":"cheminfo developers"},"license":"MIT","_id":"cheminfo-types@0.4.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":"27604f7be92cb277286a9ddb7571eb4cb556d274","tarball":"http://registry-npm.ywwl.com/cheminfo-types/download/cheminfo-types-0.4.0.tgz","fileCount":14,"integrity":"sha512-QZOAesKzSqbfRajX//2TXohNZsUm+pXwHA4e4X5Oh/HHv5bePwpiuf0voiiAGGANbYPHKvWuccQdTt30PqDYUw==","signatures":[{"sig":"MEYCIQCdKtwEVoJsUUNZIspHLpFMP+T+UZ1IdQK8pMvx8i396wIhAOuQn6og+/j73EGQRtCihRuubOKhw2yhFbtdXBGnOsDP","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":9004,"size":3421,"noattachment":false,"key":"/cheminfo-types/-/cheminfo-types-0.4.0.tgz"},"jest":{"preset":"ts-jest","testEnvironment":"node"},"main":"./lib/index.js","types":"./src/index.d.ts","module":"./lib-esm/index.js","gitHead":"a506ac1504307cdd7bc2b172513bf38ac744f540","scripts":{"tsc":"npm run clean && npm run tsc-cjs && npm run tsc-esm","test":"npm run test-coverage && npm run eslint && npm run check-types","clean":"rimraf lib lib-esm","eslint":"eslint src --cache","prepack":"npm run tsc","tsc-cjs":"tsc --project tsconfig.cjs.json","tsc-esm":"tsc --project tsconfig.esm.json","test-only":"jest","eslint-fix":"npm run eslint -- --fix","check-types":"tsc --noEmit","generate-json":"ts-node json/buildJSON.ts","test-coverage":"npm run test-only -- --coverage"},"_npmUser":{"name":"cheminfo-bot","email":"admin@cheminfo.org"},"prettier":{"semi":true,"tabWidth":2,"arrowParens":"always","singleQuote":true,"trailingComma":"all"},"repository":{"url":"git+https://github.com/cheminfo/cheminfo-types.git","type":"git"},"_npmVersion":"7.24.0","description":"Types for cheminfo packages and cheminfo data schema ","directories":{},"_nodeVersion":"16.10.0","_hasShrinkwrap":false,"devDependencies":{"jest":"^26.6.3","eslint":"^7.27.0","rimraf":"^3.0.2","js-yaml":"^4.1.0","ts-jest":"^26.5.6","ts-node":"^10.0.0","prettier":"^2.3.0","typescript":"^4.2.4","@types/jest":"^26.0.23","typescript-json-schema":"^0.50.0","eslint-config-cheminfo-typescript":"^8.0.9"},"_npmOperationalInternal":{"tmp":"tmp/cheminfo-types_0.4.0_1632636675748_0.8344452453521662","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":1632636675882,"_cnpm_publish_time":1632636675882,"dist-tags":{"latest":"1.16.0"}}