zip-lk

Sri Lanka address and zip code package

Usage no npm install needed!

<script type="module">
  import zipLk from 'https://cdn.skypack.dev/zip-lk';
</script>

README

zip-lk Address Zip Detail Provider

Build Status

This package provides zip address location information with district or province and can be search information by zip.

You can search information by

  • zip
  • city
  • district
  • province

Installation

zip-lk requires Node.js v4+ to run.

Install the package.

$ cd your-root-directory
$ npm install zip-lk

Usage example...

//import
const zip = require('zip-lk');

//configure module
zip.config();

(async () => {    

    //get all zip details by district filter
    let searchQuery = {district:'Gampaha'};

    let result = await zip.get(searchQuery);

    console.log(result);

})()

License

MIT

Free Software, Hell Yeah!