TYEclipse/dsh-checkdigit

dsh-checkdigit is a check-digit mathematics toolbox for DSH covering 17 schemes (Luhn, Verhoeff, Damm, ISBN-10/13, EAN-8/13, UPC-A, GTIN-14, ISSN, ISIN, CUSIP, SEDOL, IBAN, CAS Registry Number, ABA routing number and NPI): tools generate, validate, repair and detect check digits with pure integer arithmetic and zero runtime dependencies, plus an ISBN-10 to ISBN-13 converter, a single-edit repair search that guesses what a mistyped number most likely was, and a batch validator for whole columns of identifiers, each cross-checked against published worked examples.

dsh-checkdigit is a check-digit mathematics toolbox for DSH covering 17 schemes: Luhn, Verhoeff, Damm, ISBN-10, ISBN-13, EAN-8, EAN-13, UPC-A, GTIN-14, ISSN, ISIN, CUSIP, SEDOL, IBAN, CAS Registry Number, ABA routing number and NPI. Its tools generate the check digit for a payload and return the complete identifier (checkdigit_generate), validate identifiers, repair and detect problems, convert ISBN-10 to and from ISBN-13, run a single-edit repair search that guesses what a mistyped number most likely was meant to be, and batch-validate whole columns of identifiers - useful because language models routinely botch check-digit arithmetic such as card-number checksums, ISBNs and IBANs.

Tools & Capabilities ★ 1
View on GitHub ↗

Install

dsh plugin --profile web add github:TYEclipse/dsh-checkdigit

Copied verbatim from the README's Install block. The README notes that, if the plugin is not auto-activated, dsh-checkdigit must be added to dsh.profile.bundles in the profile's package.json before restarting dsh.

Compatibility

Every algorithm is implemented from its published specification with pure integer arithmetic - deterministic and offline - and cross-checked against published worked examples (Apple's US0378331005, the classic GB82 WEST 1234 5698 7654 32, the Luhn textbook example 79927398713, water's CAS number 7732-18-5 and more). Nothing is sent over the network and there is no runtime dependency to install.

Details

Alternatives

1321928757/dsh-api-kit · 1321928757/dsh-mysql · 1624318455/dsh-plugin-tavily

More plugins in Tools & Capabilities

Browse more in Tools & Capabilities

Guides for Tools & Capabilities plugins