{"_id":"@berntpopp/phenopackets-js","_rev":"2-0f085ab9629d62c415a40cb366abc8dc","name":"@berntpopp/phenopackets-js","dist-tags":{"latest":"1.0.2"},"versions":{"1.0.1":{"name":"@berntpopp/phenopackets-js","version":"1.0.1","keywords":["ga4gh","phenopackets","phenotype","genomics","clinical","protobuf","vrs","vrsatile"],"author":{"name":"Bernt Popp","email":"bernt.popp@gmail.com"},"license":"MIT","_id":"@berntpopp/phenopackets-js@1.0.1","maintainers":[{"name":"berntpopp","email":"bernt.popp@gmail.com"}],"homepage":"https://github.com/berntpopp/phenopackets-js#readme","bugs":{"url":"https://github.com/berntpopp/phenopackets-js/issues"},"dist":{"shasum":"7e9951382b6aa8ee7901d1c89c4a9d1b89a0ae7a","tarball":"https://registry.npmjs.org/@berntpopp/phenopackets-js/-/phenopackets-js-1.0.1.tgz","fileCount":58,"integrity":"sha512-aQt53YykE3VUPmlEeMX6Y96PjSsL3Gy+BrPeE6tLayv/5PYdie3WEK9RaYK1ZpBLtAtLnP8cFpWxFcAvg6LvSg==","signatures":[{"sig":"MEUCIBeI3tBDKBPmcxtybmm1S9uirUoMD3l4PPymJGFtVgFTAiEAjH1jYWx7aw1YxXVUy5vx5iRjenI8XHQcAVmXdrcBuuI=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@berntpopp%2fphenopackets-js@1.0.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":1464455},"main":"index.js","gitHead":"31c2c0e3cfbe93e50cfa8389553b70c0fe31da85","scripts":{"lint":"eslint . --ext .js","test":"jest","setup":"npm run download-protos && npm run generate-protos","format":"prettier --write \"**/*.{js,json,md,yml,yaml}\" --ignore-path .prettierignore","prepare":"husky","lint:fix":"eslint . --ext .js --fix","test:watch":"jest --watchAll","format:check":"prettier --check \"**/*.{js,json,md,yml,yaml}\" --ignore-path .prettierignore","download-protos":"node -e \"process.platform === 'win32' ? require('child_process').execSync('scripts\\\\clone-protos.bat', {stdio: 'inherit'}) : require('child_process').execSync('bash ./scripts/clone-protos.sh', {stdio: 'inherit'})\"","generate-protos":"bash ./scripts/generate-protos.sh"},"_npmUser":{"name":"berntpopp","email":"bernt.popp@gmail.com"},"repository":{"url":"git+https://github.com/berntpopp/phenopackets-js.git","type":"git"},"_npmVersion":"10.9.2","description":"JavaScript/TypeScript library for GA4GH Phenopackets, generated from protobuf definitions.","directories":{},"lint-staged":{"*.{js,jsx}":["eslint --fix","prettier --write"],"*.{json,md,yml,yaml}":["prettier --write"]},"_nodeVersion":"22.15.0","dependencies":{"i":"^0.3.7"},"publishConfig":{"access":"public","provenance":true},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","husky":"^9.1.7","eslint":"^8.57.1","prettier":"^3.5.3","@eslint/js":"^9.27.0","grpc-tools":"^1.12.4","lint-staged":"^16.0.0","google-protobuf":"^3.21.2","semantic-release":"^24.2.4","eslint-plugin-jest":"^28.11.0","@semantic-release/git":"^10.0.1","@semantic-release/npm":"^12.0.1","eslint-config-prettier":"^10.1.5","@semantic-release/github":"^11.0.2","@semantic-release/changelog":"^6.0.3","conventional-changelog-conventionalcommits":"^8.0.0"},"_npmOperationalInternal":{"tmp":"tmp/phenopackets-js_1.0.1_1747573710955_0.3726584753903126","host":"s3://npm-registry-packages-npm-production"}},"1.0.2":{"name":"@berntpopp/phenopackets-js","version":"1.0.2","description":"JavaScript library for GA4GH Phenopackets, generated from protobuf definitions.","main":"index.js","scripts":{"download-protos":"node -e \"process.platform === 'win32' ? require('child_process').execSync('scripts\\\\clone-protos.bat', {stdio: 'inherit'}) : require('child_process').execSync('bash ./scripts/clone-protos.sh', {stdio: 'inherit'})\"","generate-protos":"bash ./scripts/generate-protos.sh","setup":"npm run download-protos && npm run generate-protos","lint":"eslint . --ext .js","lint:fix":"eslint . --ext .js --fix","format":"prettier --write \"**/*.{js,json,md,yml,yaml}\" --ignore-path .prettierignore","format:check":"prettier --check \"**/*.{js,json,md,yml,yaml}\" --ignore-path .prettierignore","prepare":"husky","test":"jest","test:watch":"jest --watchAll","docs:generate-api":"jsdoc -c jsdoc.json","docs:build":"npm run docs:generate-api"},"keywords":["ga4gh","phenopackets","phenotype","genomics","clinical","protobuf","vrs","vrsatile"],"author":{"name":"Bernt Popp","email":"bernt.popp@gmail.com"},"license":"MIT","publishConfig":{"access":"public","provenance":true},"repository":{"type":"git","url":"git+https://github.com/berntpopp/phenopackets-js.git"},"devDependencies":{"@eslint/js":"^9.27.0","@semantic-release/changelog":"^6.0.3","@semantic-release/git":"^10.0.1","@semantic-release/github":"^11.0.2","@semantic-release/npm":"^12.0.1","conventional-changelog-conventionalcommits":"^8.0.0","docdash":"^2.0.2","eslint":"^8.57.1","eslint-config-prettier":"^10.1.5","eslint-plugin-jest":"^28.11.0","google-protobuf":"^3.21.2","grpc-tools":"^1.12.4","husky":"^9.1.7","jest":"^29.7.0","jsdoc":"^4.0.4","lint-staged":"^16.0.0","prettier":"^3.5.3","semantic-release":"^24.2.4"},"dependencies":{"i":"^0.3.7"},"lint-staged":{"*.{js,jsx}":["eslint --fix","prettier --write"],"*.{json,md,yml,yaml}":["prettier --write"]},"_id":"@berntpopp/phenopackets-js@1.0.2","gitHead":"f467a7560249b87ed0658e58aa00dd5cd27a0916","bugs":{"url":"https://github.com/berntpopp/phenopackets-js/issues"},"homepage":"https://github.com/berntpopp/phenopackets-js#readme","_nodeVersion":"22.15.0","_npmVersion":"10.9.2","dist":{"integrity":"sha512-J/NQebi5kXge8/w1xpwAg3TBCyVKhbtBb4T+wgO1Ombe0phCCir1bAxb3IKL+e5W4OosDHNCyid4UPb/p+WT1Q==","shasum":"bff8450f7d1c31bf99e2915b93e9a06f5e4cc60b","tarball":"https://registry.npmjs.org/@berntpopp/phenopackets-js/-/phenopackets-js-1.0.2.tgz","fileCount":222,"unpackedSize":48248805,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@berntpopp%2fphenopackets-js@1.0.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIBw7d6m+M+lcRginH9ssokleQvj4qQEL9m70UaoJLEDYAiByLbdgZpFndz8ehEnzLelODF//b2jtJRCujr0CMw5Y9g=="}]},"_npmUser":{"name":"berntpopp","email":"bernt.popp@gmail.com"},"directories":{},"maintainers":[{"name":"berntpopp","email":"bernt.popp@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/phenopackets-js_1.0.2_1747584388780_0.708161382082676"},"_hasShrinkwrap":false}},"time":{"created":"2025-05-18T13:08:30.906Z","modified":"2025-05-18T16:06:29.528Z","1.0.1":"2025-05-18T13:08:31.197Z","1.0.2":"2025-05-18T16:06:29.076Z"},"bugs":{"url":"https://github.com/berntpopp/phenopackets-js/issues"},"author":{"name":"Bernt Popp","email":"bernt.popp@gmail.com"},"license":"MIT","homepage":"https://github.com/berntpopp/phenopackets-js#readme","keywords":["ga4gh","phenopackets","phenotype","genomics","clinical","protobuf","vrs","vrsatile"],"repository":{"type":"git","url":"git+https://github.com/berntpopp/phenopackets-js.git"},"description":"JavaScript library for GA4GH Phenopackets, generated from protobuf definitions.","maintainers":[{"name":"berntpopp","email":"bernt.popp@gmail.com"}],"readme":"# Phenopackets-JS\n\n[![npm package](https://img.shields.io/npm/v/@berntpopp/phenopackets-js/latest.svg)](https://www.npmjs.com/package/@berntpopp/phenopackets-js)\n[![CI](https://github.com/berntpopp/phenopackets-js/actions/workflows/ci.yml/badge.svg)](https://github.com/berntpopp/phenopackets-js/actions/workflows/ci.yml)\n[![Release Package](https://github.com/berntpopp/phenopackets-js/actions/workflows/release.yml/badge.svg)](https://github.com/berntpopp/phenopackets-js/actions/workflows/release.yml)\n[![Documentation](https://github.com/berntpopp/phenopackets-js/actions/workflows/docs.yml/badge.svg)](https://berntpopp.github.io/phenopackets-js/)\n\nA JavaScript library for working with GA4GH Phenopackets, generated from the official [phenopacket-schema](https://github.com/phenopackets/phenopacket-schema) protobuf definitions.\n\n## Quick Start\n\n```bash\nnpm install @berntpopp/phenopackets-js\n```\n\n```javascript\nconst pps = require('@berntpopp/phenopackets-js');\n\n// Create a phenopacket\nconst phenopacket = new pps.v2.Phenopacket();\nphenopacket.setId('example-1');\n\n// Add metadata (required)\nconst metaData = new pps.v2.core.MetaData();\nmetaData.setCreated(pps.jsonUtils.dateToTimestamp(new Date()));\nmetaData.setCreatedBy('example-creator');\nphenopacket.setMetaData(metaData);\n```\n\n## Documentation\n\nFull documentation, including guides and API reference, is available at:\n**[https://berntpopp.github.io/phenopackets-js/](https://berntpopp.github.io/phenopackets-js/)**\n\n- [Installation Guide](https://berntpopp.github.io/phenopackets-js/guide/installation.html)\n- [Basic Usage](https://berntpopp.github.io/phenopackets-js/guide/basic-usage.html)\n- [API Reference](https://berntpopp.github.io/phenopackets-js/api/)\n- [Development Guide](https://berntpopp.github.io/phenopackets-js/guide/development.html)\n\n## License\n\n- **Library**: MIT License. See the [LICENSE](LICENSE) file.\n- **Schema**: BSD 3-Clause License by GA4GH. Copyright (c) 2018-2024, Global Alliance for Genomics and Health.\n","readmeFilename":"README.md"}