Notwithstanding Precautions, Misadventure

    @hmcts/info-provider
    TypeScript icon, indicating that this package has built-in type declarations

    1.0.0 • Public • Published

    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()
        }
      }))
     

    Keywords

    none

    Install

    npm i @hmcts/info-provider

    DownloadsWeekly Downloads

    1,120

    Version

    1.0.0

    License

    MIT

    Last publish

    Collaborators

    • timja
    • andrewwa-kainos
    • bendiggle
    • ellie-harrison
    • adrianc
    • hemantt
    • adamsilver
    • trevorsaint
    • timja-hmcts
    • dharmendrak
    • robertparkinson
    • pragnesh
    • damdun
    • p.jar
    • sabah.irfan
    • jenkins-reform-hmcts