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 1.9.5 to 1.9.6

12

lib/filesize.js

@@ -9,3 +9,3 @@ /**

* @module filesize
* @version 1.9.5
* @version 1.9.6
*/

@@ -24,7 +24,7 @@ ( function ( global ) {

all : {
increments : [["B", 1], ["Kb", 128], ["KB", 1024], ["Mb", 131072], ["MB", 1.049e+6], ["Gb", 1.342e+8], ["GB", 1.074e+9], ["Tb", 1.374e+11], ["TB", 1.1e+12], ["Pb", 1.407e+14], ["PB", 1.126e+15]],
increments : [["B", 1], ["kb", 128], ["kB", 1024], ["Mb", 131072], ["MB", 1.049e+6], ["Gb", 1.342e+8], ["GB", 1.074e+9], ["Tb", 1.374e+11], ["TB", 1.1e+12], ["Pb", 1.407e+14], ["PB", 1.126e+15]],
nth : 11
},
bitless : {
increments : [["B", 1], ["KB", 1024], ["MB", 1.049e+6], ["GB", 1.074e+9], ["TB", 1.1e+12], ["PB", 1.126e+15]],
increments : [["B", 1], ["kB", 1024], ["MB", 1.049e+6], ["GB", 1.074e+9], ["TB", 1.1e+12], ["PB", 1.126e+15]],
nth : 6

@@ -42,3 +42,3 @@ }

*/
function filesize (arg) {
function filesize ( arg) {
var result = "",

@@ -118,2 +118,6 @@ bits = true,

if ( suffix === "k" ) {
suffix = "K";
}
if ( z !== null && z[1] !== undefined && zero.test( z[1] ) ) {

@@ -120,0 +124,0 @@ result = parseInt( result, base );

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

@@ -40,3 +40,3 @@ "author": {

},
"keywords": ["file", "filesize", "size", "readable", "filesystem"]
"keywords": ["file", "filesize", "size", "readable", "file system"]
}
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