Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

node-mock-server

Package Overview
Dependencies
Maintainers
1
Versions
50
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-mock-server

File based Node REST API mock server

  • 0.25.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1K
increased by3.52%
Maintainers
1
Weekly downloads
 
Created
Source

node-mock-server

File based Node REST API mock server

Build status npm npm Codestyle

node-mock-server-ui.png

Getting Started

This application requires Node 6 or higher. For Node <6 please use node-mock-server@0.22.1 For Node <4 please use node-mock-server@0.11.0

1. Install npm package:
$ npm install node-mock-server --save-dev
2. Start init process:
$ node node_modules/node-mock-server/init

Options

node-mock-server options

Usage examples

node-mock-server usage examples

Features

CLI

$ node <nodeScript> --help

  Usage
    $ node <nodeScript> [--version] [--help] <command> [<args>]

  Options
    $                  start mock server
    $ --version        print node-mock-server version
    $ --help           print help
    $ swagger-import   run a swagger import
    $ validate         run a validation for all mock data
    $ collections      print all available collections
    $ collection <id>  activate collection

  Examples
    $ node demo/index.js --version
    $ node demo/index.js collections

Demo

git clone https://github.com/smollweide/node-mock-server.git
cd node-mock-server
npm install
node demo

License

MIT License

Changelog

Please see the Releases

Keywords

FAQs

Package last updated on 09 May 2020

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc