Timo Hocker 9bdab287f0
Some checks failed
continuous-integration/drone/push Build is failing
update-scanner: automatic update
eslint: 7.4.0 ==> 7.5.0 minor
2020-07-19 12:01:48 +02:00
2020-05-15 16:08:01 +02:00
2020-07-10 08:21:00 +02:00
fix
2020-04-24 16:13:54 +02:00
2020-05-15 16:09:14 +02:00
2020-03-14 14:06:57 +01:00
2020-05-15 16:08:01 +02:00
2020-05-15 16:08:01 +02:00
2020-05-15 16:08:01 +02:00
2020-07-19 12:01:48 +02:00
2020-05-15 16:08:01 +02:00
2020-05-15 16:08:01 +02:00
2020-07-19 12:01:48 +02:00

@sapphirecode/encoding-helper

version: 1.0.x

Converting strings between different encodings

Installation

npm:

npm i --save @sapphirecode/encoding-helper

yarn:

yarn add @sapphirecode/encoding-helper

Usage

const encoding = require('@sapphirecode/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
const hexn = encoding.num_to_hex(10); // convert a number to hex
const num = encoding.hex_to_num('a'); // convert hex to a number

License

MIT © Timo Hocker timo@scode.ovh

Description
No description provided
Readme 322 KiB
Languages
JavaScript 100%