amiddy
Middleware server with high configurability for development
Last updated 8 days ago by darkyndy .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install amiddy 
SYNC missed versions from official npm registry.

CI Status Coverage Status Known Vulnerabilities npm Downloads MIT License
support the author donate

amiddy

Middleware package that makes development much simpler.

Key features

  1. proxy any dependency based on pattern matcher (fallback to source)
  2. mock dependency responses
  3. record dependency response

Installation

npm install --save-dev amiddy

Or if you are using yarn

yarn add --dev amiddy

Usage

Add new script in package.json. Example:

"scripts": {
  "start-amiddy": "node amiddy"
}

After that start the server by running npm run start-amiddy

Configuration

Via .amiddy (Recommended)

You need to have at project root folder a file named .amiddy that contains valid json. You just need to create a file with this name, complete json configuration and you can start the server.

Via CLI

Using --config or -c arguments you can provide path to the configuration file. Example: npm run start-amiddy --config=../path/to/file.json

Options

See docs/config/README.md

Command Line Options

--config, -c

Allows you to set the configuration file.

--debug, -d

Allows you to see debug logs. Useful to see what is the configuration that was loaded.

License

The MIT License (MIT)

Current Tags

  • 2.0.0                                ...           latest (8 days ago)

9 Versions

  • 2.0.0                                ...           8 days ago
  • 1.3.3                                ...           5 months ago
  • 1.3.2                                ...           5 months ago
  • 1.3.1                                ...           6 months ago
  • 1.3.0                                ...           9 months ago
  • 1.2.0                                ...           a year ago
  • 1.1.0                                ...           a year ago
  • 1.0.1                                ...           a year ago
  • 1.0.0                                ...           a year ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 16
Last Day 0
Last Week 16
Last Month 0
Dependencies (10)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |