Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wojtekmaj/is-valid-regon
Check if a number is a valid REGON.
https://github.com/wojtekmaj/is-valid-regon
regon validation
Last synced: 3 months ago
JSON representation
Check if a number is a valid REGON.
- Host: GitHub
- URL: https://github.com/wojtekmaj/is-valid-regon
- Owner: wojtekmaj
- License: mit
- Created: 2021-03-19T12:30:33.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2024-09-27T07:12:33.000Z (3 months ago)
- Last Synced: 2024-10-09T17:47:49.388Z (3 months ago)
- Topics: regon, validation
- Language: TypeScript
- Homepage:
- Size: 3.17 MB
- Stars: 2
- 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-regon.svg)](https://www.npmjs.com/package/is-valid-regon) ![downloads](https://img.shields.io/npm/dt/is-valid-regon.svg) [![CI](https://github.com/wojtekmaj/is-valid-regon/actions/workflows/ci.yml/badge.svg)](https://github.com/wojtekmaj/is-valid-regon/actions)
# Is-Valid-REGON
Check if a number is a valid REGON.
## tl;dr
- Install by executing `npm install is-valid-regon` or `yarn add is-valid-regon`.
- Import by adding `import isValidREGON from 'is-valid-regon'`.
- Use it by writing `const valid = isValidREGON('817613530')`## See also
- [is-valid-nip](https://github.com/wojtekmaj/is-valid-nip): Check if a number is a valid Numer Identyfikacji Podatkowej (NIP).
- [is-valid-pesel](https://github.com/wojtekmaj/is-valid-pesel): Check if a number is a valid PESEL.## Examples
```ts
isValidREGON('817613530'); // trueisValidREGON('12345678512347'); // true
```## License
The MIT License.
## Author