@lzcontest/contest-profiles
v0.2.2
Published
Exact-version Cabrillo and ADIF profiles for the LZLog contest catalog.
Maintainers
Readme
@lzcontest/contest-profiles
Exact-version ADIF and Cabrillo profiles for the built-in contest catalog.
Install
npm install @lzcontest/contest-profilesResolve contest formats
import {
resolveBuiltInAdifProfile,
resolveBuiltInCabrilloProfile,
} from '@lzcontest/contest-profiles';
const reference = {
id: 'cq-ww',
rulesetVersion: '1.0.0',
} as const;
const adif = await resolveBuiltInAdifProfile(reference);
const cabrillo = await resolveBuiltInCabrilloProfile(reference);
console.log(adif?.id, cabrillo?.id);Resolve Cabrillo imports
import {
resolveBuiltInCabrilloImportProfile,
} from '@lzcontest/contest-profiles';
const profile = await resolveBuiltInCabrilloImportProfile('CQ-WW-CW');Core API
| Export | Purpose |
| --- | --- |
| builtInFormatProfileReferences | Contest versions with format profiles |
| resolveBuiltInAdifProfile | Load the ADIF profile for an exact contest version |
| resolveBuiltInCabrilloProfile | Load the Cabrillo profile for an exact contest version |
| resolveBuiltInCabrilloImportProfile | Resolve a Cabrillo CONTEST identifier |
| defineAdifProfile | Author a profile against a typed contest contract |
| defineCabrilloProfile | Author a profile against a typed contest contract |
| findAdifProfileForNonContest | Resolve ADIF mappings for non-contest logs |
