@lzcontest/cluster
v0.1.1
Published
Transport-neutral DX cluster profiles, parsing, spot policy, and split interpretation.
Downloads
231
Maintainers
Readme
@lzcontest/cluster
DX cluster parsing and policy without a network-client dependency.
Install
npm install @lzcontest/clusterUsage
import {
DXLOG_DEFAULT_CLUSTER_MODE_PLAN,
createDefaultClusterProfile,
modeForClusterFrequency,
} from '@lzcontest/cluster';
const profile = createDefaultClusterProfile(new Date().toISOString());
const mode = modeForClusterFrequency(
DXLOG_DEFAULT_CLUSTER_MODE_PLAN,
14_025_000,
);
console.log(profile.name);
console.log(mode); // CWCore API
| Export | Purpose |
| --- | --- |
| createClusterProfile | Validate and create a cluster profile |
| createDefaultClusterProfile | Create the read-only HamQTH profile |
| parseClusterLine | Parse one incoming cluster line |
| createClusterModePlan | Define mode classification by frequency |
| parseClusterSplit | Interpret split hints from spot comments |
| ClusterTransport | Transport contract for a cluster client |
| DXLOG_DEFAULT_CLUSTER_MODE_PLAN | Documented DXLog-compatible mode plan |
