Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wojtekmaj/is-valid-nip
Check if a number is a valid Numer Identyfikacji Podatkowej (NIP).
https://github.com/wojtekmaj/is-valid-nip
nip validation
Last synced: about 1 month ago
JSON representation
Check if a number is a valid Numer Identyfikacji Podatkowej (NIP).
- Host: GitHub
- URL: https://github.com/wojtekmaj/is-valid-nip
- Owner: wojtekmaj
- License: mit
- Created: 2021-03-19T12:30:43.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-09-27T07:15:32.000Z (about 2 months ago)
- Last Synced: 2024-10-09T09:15:11.598Z (about 1 month ago)
- Topics: nip, validation
- Language: TypeScript
- Homepage:
- Size: 2.64 MB
- Stars: 3
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
[![npm](https://img.shields.io/npm/v/is-valid-nip.svg)](https://www.npmjs.com/package/is-valid-nip) ![downloads](https://img.shields.io/npm/dt/is-valid-nip.svg) [![CI](https://github.com/wojtekmaj/is-valid-nip/actions/workflows/ci.yml/badge.svg)](https://github.com/wojtekmaj/is-valid-nip/actions)
# 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
- [is-valid-pesel](https://github.com/wojtekmaj/is-valid-pesel): Check if a number is a valid PESEL.
- [is-valid-regon](https://github.com/wojtekmaj/is-valid-regon): Check if a number is a valid REGON.## Examples
```ts
isValidNIP('5252611332'); // trueisValidNIP('525-261-13-32'); // true
isValidNIP('525-26-11-332'); // true
```## License
The MIT License.
## Author