is-valid-abn
v1.3.4
Published
Check if a number is a valid Australian Business Number (ABN)
Downloads
6,489
Readme
Is-Valid-ABN
Check if a number is a valid Australian Business Number (ABN).
tl;dr
- Install by executing
npm install is-valid-abn
oryarn add is-valid-abn
. - Import by adding
import isValidABN from 'is-valid-abn'
. - Use it by writing
const valid = isValidABN('83914571673')
See also
- is-valid-acn: Check if a number is a valid Australian Company Number (ACN).
Examples
isValidABN('83914571673'); // true
isValidABN('83 914 571 673'); / true
isValidABN('83-914-571-673'); // true
License
The MIT License.