@hmcts/info-provider

info-provider

Stats

StarsIssuesVersionUpdatedCreatedSize
@hmcts/info-provider
0291.0.04 years ago4 years agoMinified + gzip package size for @hmcts/info-provider in KB

Readme

nodejs-info-provider

Build Status
MIT license
Greenkeeper badge

$ yarn add @hmcts/info-provider

Typescript:

import { InfoContributor, infoRequestHandler  } from '@hmcts/info-provider'


express.Router()
  .get('/info', infoRequestHandler({
    info: {
      'fees-register': new InfoContributor('https://fees-register.com/info')
    },
    extraBuildInfo: {
      featureToggles: config.get('featureToggles'),
      hostname: hostname()
    }
  }))
  • Javascript -
const infoRequestHandler = require('@hmcts/info-provider').infoRequestHandler

express.Router()
  .get('/info', infoRequestHandler({
    info: {
      'fees-register': {url: 'https://fees-register.com/info'}
    },
    extraBuildInfo: {
      featureToggles: config.get('featureToggles'),
      hostname: hostname()
    }
  }))

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.