india-pincode-regex/HACKING.md
Nemo fc6bfdb113 Lots of changes for v2
Mainly, add a search method to find all valid pincodes
See #3

Create a single unified regex.
Update some dependencies

However, this breaks on PHP,so I need to fix something for that.
2023-07-01 20:00:02 +05:30

983 B

Generating the regex

  1. Download the latest CSV file from https://data.gov.in/resources/all-india-pincode-directory-till-last-month.
  2. Copy all the pincodes to a pincodes.csv file
  3. Generate all unique pincodes by running npm run build

Generating the browser-version

  1. Make sure development dependencies are installed.
  2. npm run browserify.
  3. Test it by opening tests/index.html in your browser.

PHP Release

  1. git tag 1.2.3
  2. git push --tags

Ruby Development

After checking out the repo, run bin/setup to install dependencies. You can also run bin/console for an interactive prompt that will allow you to experiment.

To install this gem onto your local machine, run bundle exec rake install. To release a new version, update the version number in version.rb, and then run bundle exec rake release, which will create a git tag for the version, push git commits and tags, and push the .gem file to rubygems.org.