UNPKG

polish-utils

Version:

Lightweight library for extracting data and validating polish identification numbers such as PESEL or NIP

12 lines (11 loc) 280 B
type Gender = 'male' | 'female'; declare class PESEL { private readonly pesel; private readonly valid; constructor(pesel: string); get isValid(): boolean; getGender(): Gender | null; getDateOfBirth(): Date | null; private validate; } export { PESEL };