ws-server-ftw
Advanced tools
Comparing version 0.1.1 to 0.1.2
@@ -0,1 +1,3 @@ | ||
#!/usr/bin/env node | ||
const path = require('path') | ||
@@ -2,0 +4,0 @@ const fs = require('fs') |
{ | ||
"name": "ws-server-ftw", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "Mock websocket endpoints with ease", | ||
"main": "src/index.js", | ||
"bin": { | ||
"ws-server": "./bin/ws-server.js" | ||
}, | ||
"nyc": { | ||
@@ -7,0 +10,0 @@ "check-coverage": true, |
@@ -8,3 +8,3 @@ # ws-server-ftw | ||
ws-server was developed in order to allow a developer to easily mock websocket apis in a few seconds. The idea is taken from [json-server](https://github.com/typicode/json-server), a great package which let's you mock entire rest apis. | ||
ws-server was developed in order to allow a developer to easily mock websocket apis in a few seconds. The idea is taken from [json-server](https://github.com/typicode/json-server), a great package which lets you mock entire rest apis. | ||
@@ -21,3 +21,3 @@ ![Screenshot](screenshot.png) | ||
ws-server let's you send through a socket connection data defined in a json or js file. | ||
ws-server lets you send through a socket connection data defined in a json or js file. | ||
The mock server will serve the requested path traversing the json provided with the same path, i.e. the path `/foo/bar` will serve (if db is the json object) `db['foo']['bar']` | ||
@@ -39,7 +39,7 @@ | ||
$ node ./node_modules/ws-server-ftw/bin/ws-server.js -i mydb.json | ||
$ ws-server -i mydb.json | ||
Available options: | ||
$ node ./node_modules/ws-server-ftw/bin/ws-server.js -h | ||
$ ws-server -h | ||
@@ -46,0 +46,0 @@ usage: index.js [-h] [-v] [-p PORT] -i DB |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
339
17866