india-pincode-regex/HACKING.md

12 lines
419 B
Markdown
Raw Normal View History

2020-02-24 18:49:44 +00:00
# Generating the regex
1. Download the latest CSV file from <https://data.gov.in/node/85839/download> or <https://data.gov.in/resources/all-india-pincode-directory>.
2. Copy all the pincodes to a pincodes.txt file
3. Generate all unique pincodes by running `sort -u pincodes.txt > /tmp/pin.txt`
4. `npm install`
5. `node src/generate.js /tmp/pin.txt > regex.txt`
# PHP Release
1. `git tag 1.2.3`
2. `git push --tags`