Ninjas Practicing Multidimensionality

    corie

    2.0.11 • Public • Published

    Corie

    Born to build better suitable frameworks and apps with Node.js & Koa

    Table of contents

    Installation

    npm i --save corie corie-configuration

    Usage

    'use strict';
     
    const Corie = require('corie');
    const Config = require('corie-configuration');
     
    // 环境变量
    const env = process.env.NODE_ENV || 'development';
    const config = new Config({
      env,
      conf: './conf'
    });
     
    const corie = new Corie({
      // 服务相关配置
      server: config.get('server'),
      // pug模板需要的全局静态值
      locals: config.get('locals')
    });
     
    // 加载中间件
    corie.useMiddleware();
     
    module.exports = corie;
     

    Examples

    Follow below links to learn more

    Keywords

    Install

    npm i corie

    DownloadsWeekly Downloads

    1

    Version

    2.0.11

    License

    MIT

    Unpacked Size

    14.7 kB

    Total Files

    5

    Last publish

    Collaborators

    • fengxinming