{"_id":"@br-health-kit/core","name":"@br-health-kit/core","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@br-health-kit/core","version":"1.0.0","description":"Shared types, contracts and helpers for br-health-kit packages","license":"MIT","engines":{"node":">=20"},"type":"module","sideEffects":false,"main":"./dist/index.cjs","module":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"},"./node":{"types":"./dist/node.d.ts","import":"./dist/node.js","require":"./dist/node.cjs"}},"publishConfig":{"access":"public"},"keywords":["saude","healthcare","brasil","br-health-kit"],"repository":{"type":"git","url":"git+https://github.com/arielff3/br-health-kit.git","directory":"packages/core"},"homepage":"https://github.com/arielff3/br-health-kit/tree/main/packages/core#readme","bugs":{"url":"https://github.com/arielff3/br-health-kit/issues"},"scripts":{"build":"tsup","clean":"node -e \"require('node:fs').rmSync('dist',{recursive:true,force:true})\""},"_id":"@br-health-kit/core@1.0.0","_integrity":"sha512-b87b6NenDm20DU5nF+F5leCPhJAtNswcM6Yfh5lQCjIsbIOOjtmkFoY0eCZonTxUqg/60aAJ94GW/4wWrfuwng==","_resolved":"C:\\Users\\ariel\\AppData\\Local\\Temp\\38cff7beb5f03d8e29c64b39af132168\\br-health-kit-core-1.0.0.tgz","_from":"file:br-health-kit-core-1.0.0.tgz","_nodeVersion":"22.17.1","_npmVersion":"10.9.2","dist":{"integrity":"sha512-b87b6NenDm20DU5nF+F5leCPhJAtNswcM6Yfh5lQCjIsbIOOjtmkFoY0eCZonTxUqg/60aAJ94GW/4wWrfuwng==","shasum":"479d303e03f4979b38f2293855dfb6c90c297ad9","tarball":"https://registry.npmjs.org/@br-health-kit/core/-/core-1.0.0.tgz","fileCount":19,"unpackedSize":166305,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCKI00+cG59nPEDT8NQHqDNJqppP6iLBzs7dwGdjYsW4wIhAP1G6fwnocKeLJAYQrWCLO4eRi4jbp/DvdP2nE3urRZX"}]},"_npmUser":{"name":"arielff03","email":"arielfrancoferreira5@gmail.com"},"directories":{},"maintainers":[{"name":"arielff03","email":"arielfrancoferreira5@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/core_1.0.0_1787770207114_0.8678307130036926"},"_hasShrinkwrap":false}},"time":{"created":"2026-08-26T18:50:07.017Z","1.0.0":"2026-08-26T18:50:07.258Z","modified":"2026-08-26T18:50:07.415Z"},"maintainers":[{"name":"arielff03","email":"arielfrancoferreira5@gmail.com"}],"description":"Shared types, contracts and helpers for br-health-kit packages","homepage":"https://github.com/arielff3/br-health-kit/tree/main/packages/core#readme","keywords":["saude","healthcare","brasil","br-health-kit"],"repository":{"type":"git","url":"git+https://github.com/arielff3/br-health-kit.git","directory":"packages/core"},"bugs":{"url":"https://github.com/arielff3/br-health-kit/issues"},"license":"MIT","readme":"# @br-health-kit/core\n\nShared contracts for every package in br-health-kit. **Contains no data.**\n\n- `DatasetMetadata` / `assertDatasetMetadata` - dataset provenance\n- `VersionedRegistry` - version selection, lazy and memoized\n- `createFromSource` - builds a dataset from data the caller already has\n- `SearchIndex` - dependency-free search, accent and case insensitive, with\n  AND semantics across terms\n- `normalizeText` / `tokenize`\n- `compareVersions` / `latestVersion` / `sortVersions`\n- `isValidCnpj` / `formatCnpj` - including the alphanumeric CNPJ in force\n  since July 2026\n- `deepFreeze` / `assertTablesMatchMetadata`\n- The error hierarchy: `BrHealthKitError` and its subclasses\n\nYou rarely install this directly; it comes as a dependency of the dataset\npackages.\n\n## Subpaths\n\n| Entry | Environment |\n| --- | --- |\n| `@br-health-kit/core` | anywhere. Pure, no `node:` imports |\n| `@br-health-kit/core/node` | Node only. `createFileRegistry`, reads datasets from disk |\n\nThe split exists so the pure helpers stay usable in a browser while the\nfilesystem access every dataset package needs lives behind an explicit\nsubpath.\n\n## Licence\n\nMIT.\n","readmeFilename":"README.md","_rev":"1-79b70be68de9d1ba73fe9e34be8db070"}