Comparing version 3.4.0 to 3.4.1
@@ -0,0 +0,0 @@ { |
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
14220