amiddy

3.0.0 • Public • Published

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. 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 the 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.

--tokens, -t

Allows you to set the tokens file. When using tokens file, the config file will be used as base configuration, see #16.

--debug, -d

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

License

The MIT License (MIT)

Package Sidebar

Install

npm i amiddy

Weekly Downloads

125

Version

3.0.0

License

MIT

Unpacked Size

26 kB

Total Files

19

Last publish

Collaborators

  • darkyndy