Comparing version 1.9.2 to 1.9.3
@@ -9,3 +9,3 @@ /** | ||
* @module filesize | ||
* @version 1.9.2 | ||
* @version 1.9.3 | ||
*/ | ||
@@ -34,7 +34,6 @@ ( function ( global ) { | ||
* | ||
* @param {Mixed} arg String, Int or Float to transform | ||
* @param {Number} pos [Optional] Position to round to, defaults to 2 if short is ommitted | ||
* @param {Boolean} short [Optional] Shorthand output, similar to "ls -lh", overrides pos to 1 | ||
* @param {Boolean} bits [Optional] Determines if `bit` sizes are used for result calculation, default is true | ||
* @return {String} Readable file size String | ||
* @param {Mixed} arg String, Int or Float to transform | ||
* @param {Mixed} pos [Optional] Position to round to, defaults to 2 if short is ommitted, or `true` for shorthand output | ||
* @param {Boolean} bits [Optional] Determines if `bit` sizes are used for result calculation, default is true | ||
* @return {String} Readable file size String | ||
*/ | ||
@@ -78,3 +77,3 @@ function filesize (arg) { | ||
if ( num === 0 ) { | ||
result = Number( 0 ).toFixed( 0 ) + "B"; | ||
result = "0B"; | ||
} | ||
@@ -81,0 +80,0 @@ else { |
{ | ||
"name": "filesize", | ||
"description": "JavaScript library to generate a human readable String describing the file size", | ||
"version": "1.9.2", | ||
"version": "1.9.3", | ||
"homepage": "http://filesizejs.com", | ||
@@ -6,0 +6,0 @@ "author": { |
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
7135
121