@brazilian-utils/is-valid-cep

0.1.2 • Public • Published

@brazilian-utils/is-valid-cep

Check if CEP is valid

Installation

# Yarn
yarn add @brazilian-utils/is-valid-cep

# npm
npm install @brazilian-utils/is-valid-cep --save

# UMD
<script type='text/javascript' src='https://unpkg.com/@brazilian-utils/is-valid-cep/dist/index.umd.js'></script>

Usage

import isValidCep from '@brazilian-utils/is-valid-cep';

isValidCep('92500000'); // true
isValidCep('92500-000'); // true
isValidCep('8434850001'); // false

/@brazilian-utils/is-valid-cep/

    Package Sidebar

    Install

    npm i @brazilian-utils/is-valid-cep

    Weekly Downloads

    792

    Version

    0.1.2

    License

    MIT

    Unpacked Size

    5.44 kB

    Total Files

    9

    Last publish

    Collaborators

    • andreoav
    • hyanmandian
    • lucassveloso