Socket
Socket
Sign inDemoInstall

bencode

Package Overview
Dependencies
Maintainers
2
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bencode - npm Package Compare versions

Comparing version 0.12.0 to 1.0.0

yarn.lock

11

CHANGELOG.md

@@ -0,1 +1,12 @@

## 1.0.0
- Support Node 0.10, 0.12, and early Node 4 (@feross)
## 0.12.0
- Add `btparse` to benchmarks (@themasch)
- Use `Buffer.from()` & `Buffer.allocUnsafe()` (@slang800)
- Use constants for character codes (@slang800)
- Fix Makefile (@zunsthy)
## 0.11.0

@@ -2,0 +13,0 @@

2

lib/encode.js

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

var Buffer = require('safe-buffer').Buffer
/**

@@ -2,0 +4,0 @@ * Encodes data in bencode.

5

package.json
{
"name": "bencode",
"description": "Bencode de/encoder",
"version": "0.12.0",
"version": "1.0.0",
"bugs": {

@@ -48,3 +48,6 @@ "url": "https://github.com/themasch/node-bencode/issues"

"test": "standard && tape test/*.test.js | tap-spec"
},
"dependencies": {
"safe-buffer": "^5.1.1"
}
}

@@ -50,3 +50,3 @@ # Bencode

bncode | 0.5.3 | 25,097
bparse | 1.0.2 | -
btparse | 1.0.2 | -

@@ -62,3 +62,3 @@ ### decode to buffer

bncode | 0.5.3 | 16,567
bparse | 1.0.2 | *155,660*
btparse | 1.0.2 | *155,660*

@@ -65,0 +65,0 @@ _Benchmarks run on an Intel Core i7-4600M @ 2.90Ghz with node v7.8.0 & GNU/Linux 4.4.39_

Sorry, the diff of this file is not supported yet

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