5.1.1 • Published 1 year ago
kennitala-utility v5.1.1
Utility functions for icelandic social security numbers (kennitolur). Written in TypeScript. Compiled javascript is in js/ subfolder.
types...
export declare function format(kt: string): string;
export declare function makeKennitala(birthdate: Date): string;
export declare function clean(kt?: string | number): string;
export declare function isValid(kt: string | number): boolean;
export declare function cleanAndValidate(kt?: string | number): string;
export declare function isValidDate(kt: string | number): boolean;
export declare function getBirthdate(kt?: string | number): Date;
export declare function getAge(kt: string | number, referenceDate?: Date): number;
export declare function isKennitalaPart(str?: string): boolean;
export declare function isCompany(kt?: string): boolean;
Changes
5.1.1
1 year ago
5.1.0
4 years ago
6.0.0
4 years ago
5.0.0
5 years ago
4.4.4
6 years ago
4.4.2
6 years ago
4.4.1
7 years ago
4.4.0
7 years ago
4.3.2
7 years ago
4.3.1
7 years ago
4.3.0
7 years ago
4.2.5
8 years ago
4.2.4
8 years ago
4.2.3
8 years ago
4.2.2
8 years ago
4.2.1
8 years ago
4.2.0
8 years ago
4.1.0
8 years ago
4.0.0
8 years ago
3.0.1
8 years ago
3.0.0
8 years ago
2.1.0
8 years ago
2.0.0
8 years ago
1.0.2
8 years ago
1.0.1
8 years ago
1.0.0
8 years ago