Socket
Socket
Sign inDemoInstall

buffer-compare

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

buffer-compare - npm Package Compare versions

Comparing version 0.0.1 to 1.0.0

2

package.json
{
"name": "buffer-compare",
"description": "Lexicographically compare two buffers. ",
"version": "0.0.1",
"version": "1.0.0",
"keywords":["sort","buffer","lexiographic"],

@@ -6,0 +6,0 @@ "repository": {

@@ -19,1 +19,8 @@ var test = require("tape")

})
test("sorts correctly with null bytes at end",function(t){
t.equals(compare(new Buffer("hi\x00"),new Buffer("hi")),1,"should match 1 if last is a null byte and compare to is one shorter")
t.end();
})
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