is-valid-australian-postcode
TypeScript icon, indicating that this package has built-in type declarations

1.3.3 • Public • Published

npm downloads CI

Is-Valid-Australian-Postcode

Check if a number is a valid Australian postcode.

tl;dr

  • Install by executing npm install is-valid-australian-postcode or yarn add is-valid-australian-postcode.
  • Import by adding import isValidAustralianPostcode from 'is-valid-australian-postcode'.
  • Use it by writing const valid = isValidAustralianPostcode('0919')

Examples

isValidAustralianPostcode('0872'); // true

isValidAustralianPostcode(872); // true

isValidAustralianPostcode('0112'); // false

isValidAustralianPostcode('12345'); // false

License

The MIT License.

Author

Wojciech Maj Wojciech Maj

Package Sidebar

Install

npm i is-valid-australian-postcode

Weekly Downloads

6

Version

1.3.3

License

MIT

Unpacked Size

9.04 kB

Total Files

10

Last publish

Collaborators

  • wojtekmaj