Socket
Socket
Sign inDemoInstall

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.4.0 to 3.4.1

0

bower.json

@@ -0,0 +0,0 @@ {

4

lib/filesize.es6.js

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

* @license BSD-3-Clause
* @version 3.4.0
* @version 3.4.1
*/

@@ -76,3 +76,3 @@ (function (global) {

val = base === 2 ? num / Math.pow(2, e * 10) : num / Math.pow(1000, e);
val = num / (base === 2 ? Math.pow(2, e * 10) : Math.pow(1000, e));

@@ -79,0 +79,0 @@ if (bits) {

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

* @license BSD-3-Clause
* @version 3.4.0
* @version 3.4.1
*/

@@ -91,3 +91,3 @@ (function (global) {

val = base === 2 ? num / Math.pow(2, e * 10) : num / Math.pow(1000, e);
val = num / (base === 2 ? Math.pow(2, e * 10) : Math.pow(1000, e));

@@ -94,0 +94,0 @@ if (bits) {

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

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

# filesize.js
[![build status](https://secure.travis-ci.org/avoidwork/filesize.js.png)](http://travis-ci.org/avoidwork/filesize.js) [![downloads](https://img.shields.io/npm/dt/filesize.svg)](https://www.npmjs.com/package/filesize)
[![build status](https://secure.travis-ci.org/avoidwork/filesize.js.svg)](http://travis-ci.org/avoidwork/filesize.js) [![downloads](https://img.shields.io/npm/dt/filesize.svg)](https://www.npmjs.com/package/filesize)

@@ -51,3 +51,3 @@ filesize.js provides a simple way to get a human readable file size string from a number (float or integer) or string.

filesize(265318, {output: "object"}); // {value: 259.1, suffix: "KB", symbol: "KB"}
filesize(1, {symbols: {B: "Б"}}); // "1 Б"
filesize(1, {symbols: {B: "Б"}}); // "1 Б"
filesize(1024); // "1 KB"

@@ -54,0 +54,0 @@ filesize(1024, {exponent: 0}); // "1024 B"

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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