All notable changes to this project will be documented in this file. The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- Refined npm
keywordsfor discoverability: addednorad-id,celestrak,satcat,catalog-number, and3le; dropped the genericdesignator,encoder, anddecoder. No source, API, or behavior changes. - Restructured the README for first-time visitors: Install, Usage, and API now
precede the
Why/history section, and the lead paragraph gained a concreteA0123 ↔ 100123example.
- Initial release.
decode(s)— parse an Alpha-5 or plain numeric designator string into its canonical integer form. Accepts numeric strings of any length (for JSON- coerce compatibility) but rejects values outside the 0–339,999 range.encode(n)— encode an integer (0–339,999) into a 5-character designator string, using the Alpha-5 letter prefix for values 100,000 and above. Rejects every non-integer numeric kind (BigInt, boolean, string, null, undefined, NaN, Infinity, floats).- Hand-written TypeScript declarations.
- Test suite covering every example in the Space-Track Alpha-5 documentation, the full A=10..Z=33 letter table, both I/O-skip boundaries in both directions, and a round-trip property check sampling the full 0–339,999 range.