Socket
Socket
Sign inDemoInstall

piece-length

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

piece-length - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

2

index.js
module.exports = length
function length (bytes) {
return Math.max(16384, 1 << Math.log2(bytes / 1024) + 0.5 | 0)
return Math.max(16384, 1 << Math.log2(bytes < 1024 ? 1 : bytes / 1024) + 0.5 | 0)
}
{
"name": "piece-length",
"author": ["Jimmy Wärting <jimmy@warting.se>", "Michael Rhodes"],
"version": "2.0.0",
"version": "2.0.1",
"main": "index.js",
"repository": {
"type": "git",
"url": "git://github.com/michaelrhodes/piece-length.git"
},
"license": "MIT",

@@ -7,0 +11,0 @@ "devDependencies": {

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