diff options
author | Marvin Borner | 2018-11-07 22:10:16 +0100 |
---|---|---|
committer | Marvin Borner | 2018-11-07 22:10:17 +0100 |
commit | 954583f3d56fbfb60321725f13ad092e536e3737 (patch) | |
tree | a0505a763797582c61fd8c2f90b422456d8874c9 /node_modules/locutus/php/strings/bin2hex.js | |
parent | 1c355e6e956a4e507ed5436d0c814ba9c3a1deb2 (diff) |
Removed node_modules
Diffstat (limited to 'node_modules/locutus/php/strings/bin2hex.js')
-rw-r--r-- | node_modules/locutus/php/strings/bin2hex.js | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/node_modules/locutus/php/strings/bin2hex.js b/node_modules/locutus/php/strings/bin2hex.js deleted file mode 100644 index 344c03d..0000000 --- a/node_modules/locutus/php/strings/bin2hex.js +++ /dev/null @@ -1,28 +0,0 @@ -'use strict'; - -module.exports = function bin2hex(s) { - // discuss at: http://locutus.io/php/bin2hex/ - // original by: Kevin van Zonneveld (http://kvz.io) - // bugfixed by: Onno Marsman (https://twitter.com/onnomarsman) - // bugfixed by: Linuxworld - // improved by: ntoniazzi (http://locutus.io/php/bin2hex:361#comment_177616) - // example 1: bin2hex('Kev') - // returns 1: '4b6576' - // example 2: bin2hex(String.fromCharCode(0x00)) - // returns 2: '00' - - var i; - var l; - var o = ''; - var n; - - s += ''; - - for (i = 0, l = s.length; i < l; i++) { - n = s.charCodeAt(i).toString(16); - o += n.length < 2 ? '0' + n : n; - } - - return o; -}; -//# sourceMappingURL=bin2hex.js.map
\ No newline at end of file |