Comparing version 1.1.1 to 1.1.2
@@ -37,7 +37,3 @@ #!/usr/bin/env node | ||
function binEncode (text) { | ||
var bin = "" | ||
for (var i = 0; i < text.length; i++) { | ||
bin += text[i].charCodeAt(0).toString(2) + " " | ||
} | ||
return bin | ||
return text.split("").map(char => char.charCodeAt(0).toString(2)).join(" ") | ||
} | ||
@@ -44,0 +40,0 @@ |
{ | ||
"name": "binary-cli", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "Binary encode & decode a string, right from your terminal.", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
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
4520
78