Registry / utility / uk-postcode

uk-postcode

JSON →
library2.1.8rbrubygemsunverified

Parse, validate, and extract sub-fields from UK postcodes.

gem install uk_postcode
INSTALL
IMPORT
SIG · UK-POSTCODE
U
uk-postcode
utilityrubyv2.1.8
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

UKPostcode
✓ require 'uk_postcode'

Parse and validate a UK postcode.

require 'uk_postcode' pc = UKPostcode.parse('SW1A 1AA') puts pc.valid? # true puts pc.outcode # 'SW1A'
Debug
Known issues

No known issues recorded.

Upgrade
Version history
2.1.8latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
8
Resources
uk-postcode — gem install uk-postcode · libregistry