filesize-parser
Advanced tools
Comparing version 1.3.2 to 1.4.0
@@ -11,2 +11,3 @@ var validAmount = function(n) { | ||
2: [ | ||
[["b", "bits"], 1/8], | ||
[["B", "Bytes"], 1], | ||
@@ -27,2 +28,3 @@ [["Kb"], 128], | ||
10: [ | ||
[["b", "bits"], 1/8], | ||
[["B", "Bytes"], 1], | ||
@@ -29,0 +31,0 @@ [["Kb"], 125], |
{ | ||
"name": "filesize-parser", | ||
"version": "1.3.2", | ||
"version": "1.4.0", | ||
"description": "Takes human readable filesystem size strings and gives you an int representing that many bytes.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -21,2 +21,6 @@ var assert = require('assert'); | ||
//passing in bits should work | ||
assert.equal(filesizeParser('1000b'), 125); | ||
assert.equal(filesizeParser('1000bits'), 125); | ||
//ignore whitespace, even stupid amounts of it | ||
@@ -23,0 +27,0 @@ assert.equal(filesizeParser('1 KB'), 1024); |
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
6833
138