mocker-api
Advanced tools
Comparing version 1.6.6 to 1.6.7
{ | ||
"name": "mocker-api", | ||
"version": "1.6.6", | ||
"version": "1.6.7", | ||
"description": "This is dev support mock RESTful API.", | ||
@@ -5,0 +5,0 @@ "bin": { |
@@ -6,4 +6,11 @@ mocker-api | ||
> ⚠️ [`webpack-api-mocker`](https://github.com/jaywcjlove/webpack-api-mocker/tree/webpack-api-mocker) has become powerful and can be used independently of webpack. **This is its new name [`mocker-api`](https://npm.im/mocker-api).** [`webpack-api-mocker`](https://github.com/jaywcjlove/webpack-api-mocker/tree/webpack-api-mocker) can still be used, New content will be posted on [**`mocker-api`**](https://npm.im/mocker-api). | ||
### ⚠️ [~~`webpack-api-mocker`~~](https://www.npmjs.com/package/webpack-api-mocker) => [`mocker-api`](https://www.npmjs.com/package/mocker-api) | ||
> ~~[`webpack-api-mocker`](https://github.com/jaywcjlove/webpack-api-mocker/tree/webpack-api-mocker)~~ has become powerful and can be used independently of webpack. **This is new name [`mocker-api`](https://npm.im/mocker-api).** ~~[`webpack-api-mocker`](https://github.com/jaywcjlove/webpack-api-mocker/tree/webpack-api-mocker)~~ can still be used, New content will be posted on [**`mocker-api`**](https://npm.im/mocker-api). | ||
- [Using with command](#using-with-command) | ||
- [Using with express](#using-with-express) | ||
- [Using with webpack](#using-with-webpack) | ||
- [Load data example](example/loadData) | ||
**Features:** | ||
@@ -14,6 +21,22 @@ | ||
🌱 Mock API proxying made simple. | ||
⚠️ Can be used independently without relying on [webpack](https://github.com/webpack/webpack) and [webpack-dev-server](https://github.com/webpack/webpack-dev-server). | ||
💥 Can be used independently without relying on [webpack](https://github.com/webpack/webpack) and [webpack-dev-server](https://github.com/webpack/webpack-dev-server). | ||
## Quick Start | ||
```bash | ||
mkdir mocker-app && cd mocker-app | ||
# Create a mocker configuration file based on rules | ||
touch api.js | ||
# Global install dependent. | ||
npm install mocker-api -g | ||
# Run server | ||
mocker ./api.js | ||
``` | ||
## Installation | ||
you can put it the `package.json` config as a current project dependency. | ||
```bash | ||
@@ -25,3 +48,3 @@ npm install mocker-api --save-dev | ||
webpack-api-mocker dev support mock, configured in `mocker/index.js`. | ||
`mocker-api` dev support mock, configured in `mocker/index.js`. | ||
@@ -146,3 +169,3 @@ you can modify the [http-proxy](https://www.npmjs.com/package/http-proxy) options and add the event listeners by adding the httpProxy configuration | ||
## Using with command | ||
## Using With Command | ||
@@ -155,3 +178,3 @@ [Base example](example/base) | ||
# Global install dependent. | ||
npm install webpack-api-mocker -g | ||
npm install mocker-api -g | ||
# Run server | ||
@@ -176,3 +199,3 @@ mocker ./mocker/index.js | ||
## Using with [Express](https://github.com/expressjs/express) | ||
## Using With [Express](https://github.com/expressjs/express) | ||
@@ -194,3 +217,3 @@ [Express example](example/express) | ||
## Using with [Webpack](https://github.com/webpack/webpack) | ||
## Using With [Webpack](https://github.com/webpack/webpack) | ||
@@ -197,0 +220,0 @@ [webpack example](example/webpack) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
18071
6
292