591 B
591 B
Generating the regex
- Download the latest CSV file from https://data.gov.in/node/85839/download or https://data.gov.in/resources/all-india-pincode-directory.
- Copy all the pincodes to a pincodes.txt file
- Generate all unique pincodes by running
sort -u pincodes.txt > /tmp/pin.txt
npm install
node src/generate.js /tmp/pin.txt > regex.txt
Generating the browser-version
- Make sure development dependencies are installed.
npm run browserify
.- Test it by opening
tests/index.html
in your browser.
PHP Release
git tag 1.2.3
git push --tags