Check if a number is a valid REGON.
- Install by executing
npm install is-valid-regon
oryarn add is-valid-regon
. - Import by adding
import isValidREGON from 'is-valid-regon'
. - Use it by writing
const valid = isValidREGON('817613530')
- is-valid-nip: Check if a number is a valid Numer Identyfikacji Podatkowej (NIP).
- is-valid-pesel: Check if a number is a valid PESEL.
isValidREGON('817613530'); // true
isValidREGON('12345678512347'); // true
The MIT License.
Wojciech Maj |