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

ws-server-ftw

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ws-server-ftw - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

2

bin/ws-server.js

@@ -0,1 +1,3 @@

#!/usr/bin/env node
const path = require('path')

@@ -2,0 +4,0 @@ const fs = require('fs')

5

package.json
{
"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

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