Skip to content

MarcosRava/cep-brazil

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cep-brazil

Get zip-code info

Usage

var cep = require('cep-brazil');
cep.get('04193020')
  .then(function (data) {
    console.log(data);
    /*
      { street: 'Rua Doutor Benedito Tolosa',
        district: 'Parque Bristol',
        city: 'São Paulo',
        state: 'SP',
        zipCode: '04193020' 
      }

    */
  }).fail(function(err) {
      console.log(err);
      return;
  });

About

get zip-code info (Brazil only)

Resources

License

Stars

Watchers

Forks

Packages

No packages published