Is-Valid-NIP
Check if a number is a valid Numer Identyfikacji Podatkowej (NIP).
tl;dr
- Install by executing
npm install is-valid-nip
oryarn add is-valid-nip
. - Import by adding
import isValidNIP from 'is-valid-nip'
. - Use it by writing
const valid = isValidNIP('5252611332')
See also
- is-valid-pesel: Check if a number is a valid PESEL.
- is-valid-regon: Check if a number is a valid REGON.
Examples
isValidNIP('5252611332'); // true
isValidNIP('525-261-13-32'); // true
isValidNIP('525-26-11-332'); // true
License
The MIT License.
Author
Wojciech Maj |