New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

mockjs-server-cli

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mockjs-server-cli

An express server that relies on mockjs to simulate the CLI of interface data

latest
Source
npmnpm
Version
1.2.4
Version published
Maintainers
1
Created
Source

mockjs-server-cli

npm

An express server that relies on mockjs to simulate the CLI of interface data

View examples

Install

npm install mockjs-server-cli

Usage

mode1

You can add mock.config.js to the project root directory

project-root

+ |- mock.config.js

Running commands

mockjs-server

mode2

You can also place mock.config.js somewhere else, or change it to another name.

project-root

+ |- /config
+   |- mock.config.js

Running commands

mockjs-server --port=8888 --config=config/mock.config.js

options

  • -p, --port(default: 8888) - server port
  • --config(default: ${cwd}/mock.config.js) - path to the mock config file
  • --delay - simulate http delay

Keywords

mock

FAQs

Package last updated on 14 Jul 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts