UNPKG
base64-async
Version:
latest (2.1.3)
2.1.3
2.1.2
2.1.1
2.1.0
2.0.0
1.0.0
0.0.1
0.0.0
Non-blocking chunked Base64 encoding
github.com/lukechilds/base64-async
lukechilds/base64-async
base64-async
/
test
/
fixtures
/
values.js
10 lines
(8 loc)
•
229 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
const
buffer
=
Buffer.from([
0x72
,
0x98
,
0x4f
,
0x96
,
0x75
,
0x03
,
0xcd
,
0x28
,
0x38
,
0xbf
]);
const
base64
=
buffer.toString(
'base64'
);
const
hexString
=
buffer.toString(
'hex'
);
module
.
exports
= { buffer, base64, hexString };