Skip to content

Latest commit

 

History

History
43 lines (29 loc) · 1.21 KB

README.md

File metadata and controls

43 lines (29 loc) · 1.21 KB

npm downloads CI

Is-Valid-NIP

Check if a number is a valid Numer Identyfikacji Podatkowej (NIP).

tl;dr

  • Install by executing npm install is-valid-nip or yarn add is-valid-nip.
  • Import by adding import isValidNIP from 'is-valid-nip'.
  • Use it by writing const valid = isValidNIP('5252611332')

See also

Examples

isValidNIP('5252611332'); // true

isValidNIP('525-261-13-32'); // true

isValidNIP('525-26-11-332'); // true

License

The MIT License.

Author

Wojciech Maj Wojciech Maj