Comparing version 1.0.2 to 1.0.3
@@ -9,2 +9,3 @@ "use strict"; | ||
function hex(buffer, options) { | ||
options = options || {}; | ||
if (!options.offsetWidth) { | ||
@@ -16,3 +17,5 @@ options.offsetWidth = 2 * Math.ceil(buffer.length.toString(16).length / 2); | ||
stream.end(); | ||
return stream.read(); | ||
var out = String(stream.read()); | ||
out = out.replace(/\n+$/, ''); | ||
return out; | ||
} |
{ | ||
"name": "hexer", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "Hex Dumper (streaming, sync, and cli)", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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
11944
197