Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ognus/ird-nz
Checksum validator for New Zealand's IRD/GST number.
https://github.com/ognus/ird-nz
gst gst-number ird javascript newzealand nodejs validator
Last synced: 16 days ago
JSON representation
Checksum validator for New Zealand's IRD/GST number.
- Host: GitHub
- URL: https://github.com/ognus/ird-nz
- Owner: ognus
- License: mit
- Created: 2013-10-10T00:12:10.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2019-02-21T02:17:56.000Z (over 5 years ago)
- Last Synced: 2024-10-14T05:03:20.919Z (25 days ago)
- Topics: gst, gst-number, ird, javascript, newzealand, nodejs, validator
- Language: JavaScript
- Size: 152 KB
- Stars: 17
- Watchers: 3
- Forks: 7
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
ird-nz
======Checksum validator for New Zealand's IRD/GST number.
Implementation based on specification available at:
http://www.ird.govt.nz/resources/9/e/9e408a004e329f16a91bbf8ad6853786/rwt-nrwt-spec-2013+v1.0+.pdf# Install
### Node
```
npm install ird-nz
```### Browser
```html```
#### Using bower
```
bower install ird-nz
```#Usage
### Node
```js
var irdnz = require('ird-nz');
irdnz.isValid(123123123);
//or pass IRD/GST number as a string
irdnz.isValid('123123123');
```### Browser
```js
// irdnz is exposed as a global (window.irdnz)
irdnz.isValid(123123123);
// or pass IRD/GST number as a string
irdnz.isValid('123123123');
```