Timo Hocker
6605ff2eed
update-scanner: automatic update
@scode/eslint-config: 2.0.7 ==> 2.0.10 minor ava: 3.6.0 ==> 3.7.0 minor
Encoding Helper
Converting strings between different encodings
Usage
const encoding = require('@scode/encoding-helper');
const hex = encoding.to_hex('abc'); // convert any encoding to hex, default is utf-8
const b64 = encoding.to_b64(hex, 'hex'); // convert any encoding to base64, default is utf-8
const utf8 = encoding.to_utf8(hex, 'hex'); // convert any encoding to utf-8, no default
Description
Languages
JavaScript
100%