hex64

0.4.0 • Public • Published

Base64 encode / decode Hex strings for URLs (module and binary tool)

install:

npm install -g hex64

commandline:

$ hex64 b64 cccccc
zMzM
 
$ hex64 hex zMzM
cccccc
 
$ hex64 cccccc
b64: zMzM
 
$ hex64 zMzM
hex: cccccc
 
$ hex64 b64 zzz
[Error: Invalid hex string]

node:

var hex64 = require('hex64');
 
hex64.encode('cccccc');   // zMzM
hex64.toBase64('cccccc'); // zMzM
 
hex64.decode('zMzM');     // cccccc
hex64.toHex('zMzM');      // cccccc
 
// intelligent: if hex -> b64 else b64 -> hex
hex64.transform('cccccc') // zMzM
hex64.transform('zMzM')   // cccccc

license: MIT

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.4.0
    211
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.4.0
    211
  • 0.3.2
    0
  • 0.3.0
    0

Package Sidebar

Install

npm i hex64

Weekly Downloads

178

Version

0.4.0

License

MIT

Last publish

Collaborators

  • tjmehta