apeman-middleware-delay
Middleware to delay
Installation
$ npm install apeman-middleware-delay --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-delay */ 'use strict' moduleexports = $pkg: /* ... */ $api: /* ... */ $middlewares: 100 {}
Signature
apemanMiddlewareDelay(duration, options) -> function
Create an middleware function
Args
Name | Type | Default | Description |
---|---|---|---|
duration | Number | Function | |
options | Object | {} | Optional settings |
License
This software is released under the MIT License.