5.1.1 • Published 3 months ago

kennitala-utility v5.1.1

Weekly downloads
140
License
MIT
Repository
github
Last release
3 months ago

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

changelog.md

5.1.1

3 months ago

5.1.0

3 years ago

6.0.0

3 years ago

5.0.0

4 years ago

4.4.4

4 years ago

4.4.2

5 years ago

4.4.1

5 years ago

4.4.0

5 years ago

4.3.2

5 years ago

4.3.1

5 years ago

4.3.0

5 years ago

4.2.5

6 years ago

4.2.4

7 years ago

4.2.3

7 years ago

4.2.2

7 years ago

4.2.1

7 years ago

4.2.0

7 years ago

4.1.0

7 years ago

4.0.0

7 years ago

3.0.1

7 years ago

3.0.0

7 years ago

2.1.0

7 years ago

2.0.0

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago