length-prefixed-message
Advanced tools
Comparing version 1.0.0 to 1.1.0
@@ -28,2 +28,3 @@ var readFn = function(byteLen) { | ||
var create = function(opts) { | ||
if (typeof opts === 'number') opts = {length:opts} | ||
opts = opts || {}; | ||
@@ -30,0 +31,0 @@ opts.length = opts.length || 4; |
{ | ||
"name": "length-prefixed-message", | ||
"version": "1.0.0", | ||
"version": "1.1.0", | ||
"description": "Reads and writes binary length prefixed messages. ", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
#length-prefixed-message | ||
[![build status](https://travis-ci.org/sorribas/length-prefixed-message.png)](https://travis-ci.org/sorribas/length-prefixed-message.png) | ||
Reads and writes binary length prefixed messages. | ||
Example | ||
##Install | ||
``` | ||
npm install length-prefixed-message | ||
``` | ||
##Example | ||
```js | ||
@@ -8,0 +17,0 @@ var lengthPrefixedMessage = require('length-prefixed-message'); |
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
4215
7
93
29