is-valid-australian-postcode

    1.1.0 • Public • Published

    npm downloads tested with jest

    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
    kontakt@wojtekmaj.pl
    http://wojtekmaj.pl

    Install

    npm i is-valid-australian-postcode

    DownloadsWeekly Downloads

    11

    Version

    1.1.0

    License

    MIT

    Unpacked Size

    8.46 kB

    Total Files

    12

    Last publish

    Collaborators

    • wojtekmaj