Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vinicius0026/sanitize-cep
sanitizes CEPs (Brazil's ZIP codes)
https://github.com/vinicius0026/sanitize-cep
Last synced: 3 days ago
JSON representation
sanitizes CEPs (Brazil's ZIP codes)
- Host: GitHub
- URL: https://github.com/vinicius0026/sanitize-cep
- Owner: vinicius0026
- License: other
- Created: 2015-06-19T19:42:53.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-06-19T20:16:35.000Z (over 9 years ago)
- Last Synced: 2023-05-07T10:06:18.014Z (over 1 year ago)
- Language: JavaScript
- Size: 88.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Sanitize CEP
[![build](https://travis-ci.org/tallesl/sanitize-cep.png)](https://travis-ci.org/tallesl/sanitize-cep)
[![coverage](https://coveralls.io/repos/tallesl/sanitize-cep/badge.png?branch=master)](https://coveralls.io/r/tallesl/sanitize-cep?branch=master)
[![dependencies](https://david-dm.org/tallesl/sanitize-cep.png)](https://david-dm.org/tallesl/sanitize-cep)
[![devDependencies](https://david-dm.org/tallesl/sanitize-cep/dev-status.png)](https://david-dm.org/tallesl/sanitize-cep#info=devDependencies)
[![npm module](https://badge.fury.io/js/sanitize-cep.png)](http://badge.fury.io/js/sanitize-cep)[![npm](https://nodei.co/npm/sanitize-cep.png?mini=true)](https://nodei.co/npm/sanitize-cep)
Sanitizes CEPs (Brazil's ZIP codes).
## Usage
```js
$ npm install sanitize-cep
[email protected] node_modules/sanitize-cep
$ node
> var sanitizeCep = require('sanitize-cep')
undefined
> sanitizeCep('30130-010')
'30130010'
> sanitizeCep('30130-lol')
null
```