UNPKG

cdigit

Version:

Collection of check digit algorithms implemented in JavaScript

20 lines (19 loc) 466 B
/** * cdigit * * @copyright 2018-2021 LiosK * @license (MIT OR Apache-2.0) */ import { Algo } from "./common"; /** ISO/IEC 7064, MOD 27-26 implementation */ declare class Mod27_26 implements Algo { name: string; longName: string; private alphabet; compute(num: string): string; generate(num: string): string; validate(num: string): boolean; parse(num: string): [string, string]; } export declare const mod27_26: Mod27_26; export {};