1.5.0 • Published 9 months ago

@govtechsg/address-identity-resolver v1.5.0

Weekly downloads
13
License
Apache-2.0
Repository
github
Last release
9 months ago

Address Identity Resolver For TradeTrust

Install

npm i --save @govtechsg/address-identity-resolver

Hooks

useAddressBook

const { addressBook ,setAddressBook, handleLocalAddressBookCsv, getIdentifier } = useAddressBook();

useThirdPartyAPIEndpoints

const {
  thirdPartyAPIEndpoints, 
  setThirdPartyAPIEndpoints, 
  addThirdPartyAPIEndpoint, 
  removeThirdPartyAPIEndpoint 
  } = useThirdPartyAPIEndpoints();

useIdentifierResolver

const { resolvedIdentifier, identifierSource } = useIdentifierResolver();

Sample usage

Features

  • React - A JavaScript library for building user interfaces.
  • Webpack - Component bundler.
  • React testing library - Simple and complete testing utilities that encourage good testing practices.
  • Jest - JavaScript testing framework used by Facebook.
  • ESLint - Make sure you are writing a quality code.
  • Prettier - Enforces a consistent style by parsing your code and re-printing it.
  • Typescript - JavaScript superset, providing optional static typing
  • Github Actions - Automate tests and linting for every push or pull request.
  • Semantic Release - Fully automated version management and package publishing.
  • Debug - JS debugging utility that works both in node.js and browsers.

Development

  • npm run test: to run tests
  • npm run lint: to run lint
  • npm run build: to build package
  • npm run semantic-release: to release new version of package