Get started with cep-promise CDN
MIT licensed
Cep-promise is a lightweight library that simplifies handling asynchronous tasks using promises.
Tags:- cep
- correios
- zipcode
- zip
- promise
- viacep
Stable version
Copied!
How to start using cep-promise CDN
// Include cep-promise library from CDN
const CEP = require('cep-promise-browser');
// Create a promise that resolves after 2 seconds
const promise = new CEP((resolve) => {
setTimeout(() => {
resolve('Promise resolved after 2 seconds');
}, 2000);
});
// Use 'then' method to handle the resolved value
promise.then((value) => {
console.log(value); // Output: Promise resolved after 2 seconds
});
Copied!
Copied!
Copied!
Copied!