@br-health-kit/core
v1.0.0
Published
Shared types, contracts and helpers for br-health-kit packages
Downloads
122
Maintainers
Readme
@br-health-kit/core
Shared contracts for every package in br-health-kit. Contains no data.
DatasetMetadata/assertDatasetMetadata- dataset provenanceVersionedRegistry- version selection, lazy and memoizedcreateFromSource- builds a dataset from data the caller already hasSearchIndex- dependency-free search, accent and case insensitive, with AND semantics across termsnormalizeText/tokenizecompareVersions/latestVersion/sortVersionsisValidCnpj/formatCnpj- including the alphanumeric CNPJ in force since July 2026deepFreeze/assertTablesMatchMetadata- The error hierarchy:
BrHealthKitErrorand its subclasses
You rarely install this directly; it comes as a dependency of the dataset packages.
Subpaths
| Entry | Environment |
| --- | --- |
| @br-health-kit/core | anywhere. Pure, no node: imports |
| @br-health-kit/core/node | Node only. createFileRegistry, reads datasets from disk |
The split exists so the pure helpers stay usable in a browser while the filesystem access every dataset package needs lives behind an explicit subpath.
Licence
MIT.
