Socket
Socket
Sign inDemoInstall

lafayette-preserve-mock

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lafayette-preserve-mock

lafayette-preserve-mock =======================


Version published
Maintainers
1
Created
Source

lafayette-preserve-mock

An Express server used to mock responses similar to those from LafayettePreserve, a modified Hydra Head application for Lafayette College.

Usage

npm install --save-dev lafayette-preserve-mock
var server = require('lafayette-preserve-mock')
server.listen(3000, function () {
  console.log('lafayette-preserve-mock running on port 3000')
})

Also included is a thin command-line wrapper:

Usage: lafayette-preserve-mock [options]

Starts mock LafayettePreserve server.

Options:
    -h, --help   Usage
    -p, --port   Specify which port the server will listen on (default: 3000)

This is useful for including the package within your project's package.json scripts field.

{
  "scripts": {
    "dev-server": "lafayette-preserve-mock",
    "test": "npm run dev-server --port=8081 & npm run tests"
  }
}

FAQs

Package last updated on 28 Feb 2017

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