/is-valid-abn

Check if a number is a valid Australian Business Number (ABN).

Primary LanguageTypeScriptMIT LicenseMIT

npm downloads CI

Is-Valid-ABN

Check if a number is a valid Australian Business Number (ABN).

tl;dr

  • Install by executing npm install is-valid-abn or yarn 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.

Author

Wojciech Maj Wojciech Maj