@lzcontest/reference-data
v0.2.0
Published
Amateur-radio reference-data manifests, parsers, provider profiles, and repository contracts.
Maintainers
Readme
@lzcontest/reference-data
Reference-data parsing and lifecycle contracts for amateur-radio software.
Install
npm install @lzcontest/reference-dataParse CTY.DAT
import { parseCtyDat } from '@lzcontest/reference-data/cty';
const result = parseCtyDat(sourceText);
if (!result.ok) {
throw new Error(result.diagnostics.map(({ message }) => message).join('\n'));
}
console.log(result.value.version);
console.log(result.value.prefixes);Install publisher data
import {
findReferenceDatasetProvider,
} from '@lzcontest/reference-data';
const provider = findReferenceDatasetProvider('super-check-partial/master');
if (provider === null) throw new Error('Provider not found');
const installation = provider.createInstallation({
buffer,
sha256,
retrievedAt: new Date().toISOString(),
});Core API
| Export | Purpose |
| --- | --- |
| referenceDatasetProviders | Publisher and parser profiles |
| ReferenceDataRepository | Dataset persistence contract |
Subpaths
| Subpath | Purpose |
| --- | --- |
| @lzcontest/reference-data/cty | CTY.DAT parsing and callsign resolution |
| @lzcontest/reference-data/scp | Super Check Partial parsing and matching |
| @lzcontest/reference-data/call-history | Call-history models, CSV interchange, and lookup projection |
