PostalCode Finder, is a npm package that allows you to get info about any italian village.
npm install postalcodes-finderjs
npm i postalcodes-finder --save
`
Usage
$3
`js
const Client = require("postalcodes-finder").Client;
`
or
`js
const { Client } = require("postalcodes-finder");
`
$3
###### Every function return an array of objects
##### Get all available informations for every village
`js
const ... = await Client.getAllCodes();
`
##### Get informations by postal code
`js
// Venice postal code: 30100
const ... = await Client.getInfoByPostalCode(code);
`
##### Get informations by city name abbreviation
`js
// Venice city code: "VI"
const ... = await Client.getInfosByCityCode(code);
`
##### Get informations by village name
`js
// Village name: "Venezia"
const ... = await Client.getInfosByCityCode(code);
`
##### Get informations by village city code
`js
// Venice admin code: 20
const ... = await Client.getInfosByAdminCode(code);
``