Nagging Penguin Matriarchs

    koa-configuration

    0.0.1 • Public • Published

    koa-configuration

    This middleware is used for mapping /config and /refresh for nodecloud-config-client.

    Usage

    import Koa from 'koa';
    import KoaConfig from 'koa-configuration;
    import ConfigClient from 'nodecloud-config-client';
     
    const app = new Koa();
    const client = new ConfigClient(/* ignire */);
     
    app.use(KoaConfig(client));

    API

    KoaConfig(client)

    • client The instance of nodecloud-config-client.

    Install

    npm i koa-configuration

    DownloadsWeekly Downloads

    8

    Version

    0.0.1

    License

    MIT

    Last publish

    Collaborators

    • zfeng