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

mockyeah

Package Overview
Dependencies
Maintainers
1
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mockyeah - npm Package Compare versions

Comparing version 0.13.2 to 0.13.3

test/fixtures/my-recording/http:||target.com|some|other|sevice

3

package.json
{
"name": "mockyeah",
"version": "0.13.2",
"version": "0.13.3",
"description": "An invaluable service mocking platform built on Express.",

@@ -47,2 +47,3 @@ "main": "index.js",

"dependencies": {
"cors": "^2.7.1",
"express": "^4.13.3",

@@ -49,0 +50,0 @@ "lodash": "^3.10.1",

@@ -136,2 +136,26 @@ # mockyeah [![Build Status](https://travis-ci.org/ryanricard/mockyeah.svg)](https://travis-ci.org/ryanricard/mockyeah)

### Configuration File
`.mockyeah` default configurations
```json
{
"name": "mockyeah",
"host": "localhost",
"port": 4001,
"fixturesDir": "./mockyeah/fixtures"
}
```
`name`: Used to identify the origin of logged output
`host`: The host mockyeah will run on
`port`: The port mockyeah will run on
`fixturesDir`: The relative path to the fixtures directory
Overriding any of these configurations can be done by placing a `.mockyeah`
file in root of the project and adding the key value pair that needs to be updated.
This file should be written using standard `JSON`.
### Introductory tutorial

@@ -170,3 +194,3 @@ 1. Create an example project and initialized with NPM

```js
const request = require('supertest')('http://localhost:4041');
const request = require('supertest')('http://localhost:4001');
const mockyeah = require('mockyeah');

@@ -173,0 +197,0 @@

@@ -5,2 +5,3 @@ 'use strict';

const prepareConfig = require('../lib/prepareConfig');
const cors = require('cors');
/**

@@ -17,2 +18,5 @@ * Server module

// Enable CORS for all routes
app.use(cors());
// Start server on conigured hose and port

@@ -19,0 +23,0 @@ const server = app.listen(config.port, config.host, function listen() {

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