Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

json-fake-server

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

json-fake-server - npm Package Compare versions

Comparing version
0.0.1
to
0.0.2
bin/json-fake-server

Sorry, the diff of this file is not supported yet

+10
-7
{
"name": "json-fake-server",
"version": "0.0.1",
"version": "0.0.2",
"description": "simple way to create node http server",
"main": "index.js",
"bin": {
"test-fake-server": "./bin/test-fake-server"
"json-fake-server": "./bin/json-fake-server"
},

@@ -14,3 +14,3 @@ "scripts": {

"type": "git",
"url": "git+https://github.com/potapovDim/mock-backend-rest.git"
"url": "git+https://github.com/potapovDim/json-fake-server.git"
},

@@ -20,5 +20,5 @@ "keywords": [

"fake-server",
"static-server",
"REST",
"REST-Api",
"JSON-FAKE-SERVER",
"API",

@@ -30,6 +30,9 @@ "MOCK",

],
"author": "potapovDim",
"author": {
"name": "Dmytro Potapov <potapovDim>",
"email": "potapovd3012@gmail.com"
},
"license": "ISC",
"bugs": {
"url": "https://github.com/potapovDim/mock-backend-rest/issues"
"url": "https://github.com/potapovDim/json-fake-server/issues"
},

@@ -46,3 +49,3 @@ "dependencies": {

},
"homepage": "https://github.com/potapovDim/mock-backend-rest#readme",
"homepage": "https://github.com/potapovDim/json-fake-server#readme",
"devDependencies": {

@@ -49,0 +52,0 @@ "ajv": "^6.10.0",

+12
-12

@@ -6,7 +6,7 @@ ## Usage

![npm downloads](https://img.shields.io/npm/dm/test-fake-server.svg?style=flat-square)
![npm downloads](https://img.shields.io/npm/dm/json-fake-server.svg?style=flat-square)
## Install
```sh
npm install -SD test-fake-server || npm i -g test-fake-server
npm install -SD json-fake-server || npm i -g json-fake-server
```

@@ -17,3 +17,3 @@

```js
const fakeServer = require('test-fake-server')
const fakeServer = require('json-fake-server')
const model = {

@@ -36,3 +36,3 @@ port: 9090,

```js
const fakeServer = require('test-fake-server')
const fakeServer = require('json-fake-server')
const fetch = require('node-fetch')

@@ -97,6 +97,6 @@ const {expect} = require('chai')

```sh
test-fake-server -m ./test.json
json-fake-server -m ./test.json
```
[More examples](https://github.com/potapovDim/mock-backend-rest/tree/new_approach/examples)
[More examples](https://github.com/potapovDim/json-fake-server/tree/new_approach/examples)

@@ -171,3 +171,3 @@

```js
const fakeServer = require('test-fake-server')
const fakeServer = require('json-fake-server')
const fetch = require('node-fetch')

@@ -227,3 +227,3 @@ const model =

```js
const fakeServer = require('test-fake-server')
const fakeServer = require('json-fake-server')
const fetch = require('node-fetch')

@@ -272,3 +272,3 @@

```js
const fakeServer = require('test-fake-server')
const fakeServer = require('json-fake-server')
const fetch = require('node-fetch')

@@ -425,3 +425,3 @@

```js
const fakeServer = require('test-fake-server')
const fakeServer = require('json-fake-server')
const fetch = require('node-fetch')

@@ -465,3 +465,3 @@ const path = require('path')

```js
const fakeServer = require('test-fake-server')
const fakeServer = require('json-fake-server')
const fetch = require('node-fetch')

@@ -519,3 +519,3 @@ const model_obj = {

```js
const fakeServer = require('test-fake-server')
const fakeServer = require('json-fake-server')
const fetch = require('node-fetch')

@@ -522,0 +522,0 @@

{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Launch Program",
"program": "${workspaceFolder}/index.js"
}
]
}

Sorry, the diff of this file is not supported yet