prettier-bytes
Advanced tools
Comparing version 1.0.3 to 1.0.4
module.exports = prettierBytes | ||
function prettierBytes (num) { | ||
if (typeof num !== 'number' || Number.isNaN(num)) { | ||
if (typeof num !== 'number' || isNaN(num)) { | ||
throw new TypeError('Expected a number, got ' + typeof num) | ||
@@ -6,0 +6,0 @@ } |
{ | ||
"name": "prettier-bytes", | ||
"description": "augment pretty-bytes to make the output a little more readable (and a little less precise)", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"author": "Dan Flettre <flettre@gmail.com>", | ||
@@ -6,0 +6,0 @@ "bugs": { |
@@ -35,3 +35,3 @@ # prettier-bytes | ||
console.log(pretty) | ||
// logs 1.3 kB | ||
// logs 1.3 KB | ||
``` | ||
@@ -38,0 +38,0 @@ |
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
8601