Skip to content

a glossary of intuitive, universally unambiguous postcode definitions and procedures

License

Notifications You must be signed in to change notification settings

ehmpathy/domain-glossary-postcode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

domain-glossary-postcode

test publish

A glossary of intuitive, universally unambiguous postcode definitions and procedures.

purpose

enable static-type checks for postcodes

  • Postcode = AsOfGlossary<string, 'Postcode'>
  • isPostcode

declare useful procedures to operate on postcodes

  • e.g., getCentroidOfPostcode

install

npm install domain-glossary-postcode

use

Postcode

declare that a given variable is a postcode

const postcode: Postcode;

assure that a given string is a postcode

const postcode: Postcode = isPostcode.assure('33127');

get the geocode of a postcode

const centroid: Geocode = getCentroidOfPostcode('33127')

About

a glossary of intuitive, universally unambiguous postcode definitions and procedures

Resources

License

Stars

Watchers

Forks

Packages

No packages published