Socket
Socket
Sign inDemoInstall

json-socket

Package Overview
Dependencies
0
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.1.2 to 0.2.0

examples/tcp-example.js

1

lib/json-socket.js

@@ -159,3 +159,4 @@ var net = require('net');

this._socket[method].apply(this._socket, arguments);
return this
}
});

64

package.json
{
"name": "json-socket",
"description": "An easy way to send JSON over TCP using sockets.",
"main": "./lib/json-socket",
"author": "Sebastian Seilund",
"version": "0.1.2",
"repository" : {
"type" : "git",
"url" : "http://github.com/sebastianseilund/node-json-socket.git"
},
"bugs" : {
"url" : "http://github.com/sebastianseilund/node-json-socket/issues"
},
"maintainers": [{
"name": "Sebastian Seilund",
"email": "sebastian@seilund.com",
"url": "http://www.sebastianseilund.com"
}],
"licenses" : [
{
"type" : "MIT",
"url" : "http://github.com/sebastianseilund/node-json-socket/raw/master/LICENSE"
}
],
"devDependencies": {
"mocha": "*"
},
"dependencies": {
"async": "0.1.x"
},
"scripts": {
"test": "./node_modules/.bin/mocha $(shell find test -name '*.test.js')"
"name": "json-socket",
"description": "An easy way to send JSON over TCP using sockets.",
"main": "./lib/json-socket",
"author": "Sebastian Seilund",
"version": "0.2.0",
"repository": {
"type": "git",
"url": "http://github.com/sebastianseilund/node-json-socket.git"
},
"bugs": {
"url": "http://github.com/sebastianseilund/node-json-socket/issues"
},
"maintainers": [
{
"name": "Sebastian Seilund",
"email": "sebastian@seilund.com",
"url": "http://www.sebastianseilund.com"
}
}
],
"licenses": [
{
"type": "MIT",
"url": "http://github.com/sebastianseilund/node-json-socket/raw/master/LICENSE"
}
],
"devDependencies": {
"async": "^2.0.1",
"mocha": "^3.0.2"
},
"scripts": {
"test": "./node_modules/.bin/mocha --recursive test"
}
}
# JsonSocket [![Build Status](https://secure.travis-ci.org/sebastianseilund/node-json-socket.png?branch=master)](https://travis-ci.org/sebastianseilund/node-json-socket)
`JsonSocket` is a very easy way to send JSON over TCP using sockets. `JsonSocket` uses a [decorator pattern](http://en.wikipedia.org/wiki/Decorator_pattern)
`JsonSocket` is a very easy way to send JSON over a socket using either TCP or UNIX sockets. `JsonSocket` uses a [decorator pattern](http://en.wikipedia.org/wiki/Decorator_pattern)
to expose extra methods and events on instances of [`net.Socket`](http://nodejs.org/api/net.html#net_class_net_socket).

@@ -5,0 +5,0 @@ These methods and events makes it straightforward to send bidirectional JSON messages of any kind and size.

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc