FR-ZIP
fast french zip code search engine , based on laposte_hexasmal data
new in v 1.1.0
by split data for each department and each first commune name letter , search time on byName() is divided by 10* (+- 19 ms on 'Brest' pattern search , was 200 ms in v1.0.1)
Weight of package is now about 46Mo decompressed , use fr-zip@1.0.1 if you want lighter package ()
Installation
npm i fr-zip
Usage
var frZip = // list all communes starts by 'bres'frZip; //list all commune for zip code or partialfrZip;frZip; //list all communes using zip(two department first number) and name combinationfrZip;
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.