1.0.1 • Published 9 years ago

apeman-middleware-locale v1.0.1

Weekly downloads
2
License
MIT
Repository
github
Last release
9 years ago

apeman-middleware-locale

Build Status Code Climate Code Coverage npm Version JS Standard

Locale loader for apeman

Installation

$ npm install apeman-middleware-locale --save

Usage

create an middleware instance and attach to server settings like $api of apeman projects.

Apemanfile.js

/** This is an example Apemanfile to use apeman-middleware-locale */

'use strict'

const loc = require('./example-loc')

module.exports = {
  $pkg: { /* ... */ },
  $api: {
    /* ... */
    $middlewares: [
      require('apeman-middleware-locale')(loc, {})
    ]
  }
}

Signature

apemanMiddlewareLocale(options) -> function

Create an middleware function

Args
NameTypeDefaultDescription
optionsObject{}Optional settings

License

This software is released under the MIT License.

Links