Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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: 2 months ago
JSON representation

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

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'); // true

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

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

## License

The MIT License.

## Author



Wojciech Maj


Wojciech Maj