Comparing version 0.1.0 to 0.2.0
0.2.0 / 2012-10-28 | ||
================== | ||
* bytes(200).should.eql('200b') | ||
0.1.0 / 2012-07-04 | ||
@@ -3,0 +8,0 @@ ================== |
@@ -27,5 +27,5 @@ | ||
* convert bytes into string. | ||
* | ||
* | ||
* @param {Number} b - bytes to convert | ||
* @return {String}i | ||
* @return {String} | ||
* @api public | ||
@@ -39,3 +39,3 @@ */ | ||
if (b >= kb) return (Math.round(b / kb * 100) / 100) + 'kb'; | ||
return b; | ||
} | ||
return b + 'b'; | ||
} |
@@ -5,3 +5,3 @@ { | ||
"description": "byte size string parser / serializer", | ||
"version": "0.1.0", | ||
"version": "0.2.0", | ||
"main": "index.js", | ||
@@ -12,8 +12,3 @@ "dependencies": {}, | ||
"should": "*" | ||
}, | ||
"component": { | ||
"scripts": { | ||
"bytes": "index.js" | ||
} | ||
} | ||
} |
Non-existent author
Supply chain riskThe package was published by an npm account that no longer exists.
Found 1 instance in 1 package
2894
40
0