Socket
Socket
Sign inDemoInstall

bytes

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bytes - npm Package Compare versions

Comparing version 0.1.0 to 0.2.0

5

History.md
0.2.0 / 2012-10-28
==================
* bytes(200).should.eql('200b')
0.1.0 / 2012-07-04

@@ -3,0 +8,0 @@ ==================

8

index.js

@@ -27,5 +27,5 @@

* convert bytes into string.
*
*
* @param {Number} b - bytes to convert
* @return {String}i
* @return {String}
* @api public

@@ -39,3 +39,3 @@ */

if (b >= kb) return (Math.round(b / kb * 100) / 100) + 'kb';
return b;
}
return b + 'b';
}

@@ -5,3 +5,3 @@ {

"description": "byte size string parser / serializer",
"version": "0.1.0",
"version": "0.2.0",
"main": "index.js",

@@ -12,8 +12,3 @@ "dependencies": {},

"should": "*"
},
"component": {
"scripts": {
"bytes": "index.js"
}
}
}
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