{"id":22025180,"url":"https://github.com/drexed/lite-address","last_synced_at":"2026-03-02T05:31:19.772Z","repository":{"id":56881654,"uuid":"404888866","full_name":"drexed/lite-address","owner":"drexed","description":"Parse and normalize street addresses","archived":false,"fork":false,"pushed_at":"2022-11-19T15:54:45.000Z","size":110,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-07T22:38:26.843Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/drexed.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-09-09T22:40:43.000Z","updated_at":"2024-09-09T21:32:43.000Z","dependencies_parsed_at":"2023-01-22T16:46:02.555Z","dependency_job_id":null,"html_url":"https://github.com/drexed/lite-address","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/drexed/lite-address","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drexed%2Flite-address","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drexed%2Flite-address/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drexed%2Flite-address/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drexed%2Flite-address/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/drexed","download_url":"https://codeload.github.com/drexed/lite-address/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drexed%2Flite-address/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29993376,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-02T01:47:34.672Z","status":"online","status_checked_at":"2026-03-02T02:00:07.342Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-30T07:14:51.883Z","updated_at":"2026-03-02T05:31:19.753Z","avatar_url":"https://github.com/drexed.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Lite::Address\n\nLite::Address is an address parser and formatter.\nCurrently supports US based addresses only.\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'lite-address'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install lite-address\n\n## Table of Contents\n\n* [Usage](#usage)\n* [Formatting](#formatting)\n\n## Usage\n\nParsing an address will return a `Lite::Address::Format` object which responds to the\nmethods below (check the class to see more). If an address cannot be parsed then nil\nwill be returned, but partial matches can be returned. All addresses will try to be\nnormalized to return a predictable pattern.\n\n#### Full matches\n```\naddress = Lite::Address::Parser.any(\"1600 Pennsylvania Ave, Washington, DC, 20500\")\naddress.street        #=\u003e Pennsylvania\naddress.number        #=\u003e 1600\naddress.postal_code   #=\u003e 20500\naddress.city          #=\u003e Washington\naddress.state         #=\u003e DC\naddress.state_name    #=\u003e District of Columbia\naddress.street_type   #=\u003e Ave\naddress.intersection? #=\u003e false\n```\n\n#### Partial matches\n```\naddress = Lite::Address::Parser.any(\"1600 Pennsylvania Ave\")\naddress.street  #=\u003e Pennsylvania\naddress.number  #=\u003e 1600\naddress.state   #=\u003e nil\n```\n\n## Formatting\n\nA formatted can be returned to as a whole or in parts of simple strings.\n\n```\naddress = Lite::Address::Parser.any(\"1600 Pennsylvania Ave, Washington, DC, 20500\")\naddress.to_s         #=\u003e 1600 Pennsylvania Ave, Washington, DC 20500\naddress.to_s(:line1) #=\u003e 1600 Pennsylvania Ave\naddress.to_s(:line2) #=\u003e Washington, DC 20500\n```\n\nYou can also format strings to the proper country mail format.\n\n#### Address only\n```\naddress = Lite::Address::Parser.any(\"1600 Pennsylvania Ave, Washington, DC, 20500\")\naddress.to_snail #=\u003e 1600 Pennsylvania Ave,\n                     Washington, DC 20500\n\n```\n\n#### Name prepended\n```\naddress = Lite::Address::Parser.any(\"1600 Pennsylvania Ave, Washington, DC, 20500\")\naddress.to_snail(name: 'John Doe') #=\u003e John Doe\n                                       1600 Pennsylvania Ave,\n                                       Washington, DC 20500\n```\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.\n\nTo 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](https://rubygems.org).\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/drexed/lite-address. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).\n\n## Code of Conduct\n\nEveryone interacting in the Lite::Address project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/drexed/lite-address/blob/master/CODE_OF_CONDUCT.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrexed%2Flite-address","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdrexed%2Flite-address","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrexed%2Flite-address/lists"}