Skip to content

WSJT-X DXCC lookup implementation in javascript using Cty.dat

Notifications You must be signed in to change notification settings

Ulterior/Callsign-lookup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Download

You must have cty.dat downloaded from officially maintained site

Download it here http://www.country-files.com/bigcty/cty.dat

Usage

(async () => {
    const ad1cCtyImpl = new AD1CCtyImpl();
    try {
        await ad1cCtyImpl.loadCty("cty.dat"); // Replace with your file path
        console.log("Entities:" + ad1cCtyImpl.entities.size);
        console.log("Prefixes:" + ad1cCtyImpl.prefixes.size);
        console.log(ad1cCtyImpl.lookup("LY1H"));
    } catch (error) {
        console.error(error);
    }
})();

Demo

About

WSJT-X DXCC lookup implementation in javascript using Cty.dat

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published