Skip to content
gatepost-devPublic

About

Unofficial TypeScript tools for Nigeria's National Digital Postcode. Not made or endorsed by NIPOST.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

9 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Gatepost

Gatepost for TypeScript

TypeScript packages for Nigeria's National Digital Postcode.

CI status Licence: Apache-2.0 OpenSSF Scorecard

Docs  ·  Playground  ·  TypeScript guide  ·  Contributing  ·  Discussions

Unofficial. Not made or endorsed by NIPOST.

Packages

Package What it is Status
@gatepost/core Parse, check and format postcodes offline. Alpha, not on npm yet
@gatepost/client Call NIPOST's gateway, with retries and limits. Alpha, not on npm yet
@gatepost/field A postcode field for any web form. Alpha, not on npm yet
@gatepost/react The postcode field as a React component. Alpha, not on npm yet
@gatepost/mock-server Mock NIPOST's gateway for client tests. Private, never goes to npm

Example

import { parse } from '@gatepost/core';

const parsed = parse('ek 01 a03 fk 01');
if (parsed.ok) {
  parsed.value.canonical; // 'EK-01-A03-FK-01'
}

The TypeScript guide and the client guide show every function. The reference lists every export.

Develop

Read docs/develop.md for the set-up, the checks and the rules for a pull request. Then read the contributing guide.

Licence

Apache-2.0. See LICENSE and NOTICE.

About

Unofficial TypeScript tools for Nigeria's National Digital Postcode. Not made or endorsed by NIPOST.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages