Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

filesize

Package Overview
Dependencies
Maintainers
1
Versions
124
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

filesize - npm Package Compare versions

Comparing version 3.5.2 to 3.5.3

5

lib/filesize.es6.js

@@ -6,3 +6,3 @@ /**

* @license BSD-3-Clause
* @version 3.5.2
* @version 3.5.3
*/

@@ -64,2 +64,3 @@ (function (global) {

if (num === 0) {
e = 0;
result[0] = 0;

@@ -128,3 +129,3 @@ result[1] = unix ? "" : !bits ? "B" : "b";

if (full) {
result[1] = fullform[standard][e] + (bits ? "bit" : "byte") + (result[0] > 1 ? "s" : "");
result[1] = fullform[standard][e] + (bits ? "bit" : "byte") + (result[0] === 1 ? "" : "s");
}

@@ -131,0 +132,0 @@

@@ -8,3 +8,3 @@ "use strict";

* @license BSD-3-Clause
* @version 3.5.2
* @version 3.5.3
*/

@@ -80,2 +80,3 @@ (function (global) {

if (num === 0) {
e = 0;
result[0] = 0;

@@ -144,3 +145,3 @@ result[1] = unix ? "" : !bits ? "B" : "b";

if (full) {
result[1] = fullform[standard][e] + (bits ? "bit" : "byte") + (result[0] > 1 ? "s" : "");
result[1] = fullform[standard][e] + (bits ? "bit" : "byte") + (result[0] === 1 ? "" : "s");
}

@@ -147,0 +148,0 @@

2

package.json
{
"name": "filesize",
"description": "JavaScript library to generate a human readable String describing the file size",
"version": "3.5.2",
"version": "3.5.3",
"homepage": "http://filesizejs.com",

@@ -6,0 +6,0 @@ "author": "Jason Mulligan <jason.mulligan@avoidwork.com>",

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