Socket
Socket
Sign inDemoInstall

pretty-bytes

Package Overview
Dependencies
1
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.1 to 1.0.2

2

package.json
{
"name": "pretty-bytes",
"version": "1.0.1",
"version": "1.0.2",
"description": "Convert bytes to a human readable string: 1337 → 1.34 kB",

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -30,4 +30,4 @@ /*!

if (num === 0) {
return '0 B';
if (num < 1) {
return (neg ? '-' : '') + num + ' B';
}

@@ -34,0 +34,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc