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

faux-server

Package Overview
Dependencies
Maintainers
4
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

faux-server

Intercept requests to RESTful endpoints and replace them with requests against the client store.

  • 0.2.2
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
4
Weekly downloads
 
Created
Source

Faux-Server

===

Intercept requests to RESTful endpoints and replace them with requests against the client store.

##Usage

Require and load the faux server. Once loaded all http(s) requests will be faked out.

var fauxServer = require('faux-server');
fauxServer();

Options:

debug: whether or not to log requests to your console. defaults to true.
delay: delay (in ms) between receiving the request and responding.  Use to fake out network latency.

options usage:

var fauxServer = require('faux-server');
fauxServer({ debug: false, delay: 100 });

Disabling faux-server:


var fauxServer = require('faux-server');
var server = fauxServer();
server.restore();

Keywords

FAQs

Package last updated on 04 Feb 2016

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