Stats

 Latest version : 1.1.0

 Last updated on 2018-09-02T16:28:10.797Z

 Keywords : express, mock, restful, router, api

 Downloads :

  • 26 in Last Month

 Links :

 Examples

¯\_(ツ)_/¯
No examples found for this package

 Readme

alpha-utils Build Status

This package includes some utilities used by alpha-scripts

Usage

var express = require('express');
var mockMiddleware = require('alpha-utils/mockMiddleware');

var app = express();
...
app.use(mockMiddleware({path: '/mock'}))

Options

path (default: 'mock')

set the path where the mock files in

disable (default: false)

when set to true, all mock routes are disabled

 Comments