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 1.9.2 to 1.9.3

13

lib/filesize.js

@@ -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": {

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