UNPKG
cryptomancy-format
Version:
latest (1.0.2)
1.0.2
1.0.1
1.0.0
encoding libraries for cryptomancy
cryptomancy-format
/
test.js
11 lines
(7 loc)
•
238 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
var
assert
=
require
(
"assert"
); var
format
=
require
(
"."
); var start =
'pewpew'
; var hex =
format
.encodeHex(
format
.decodeUTF8(start)); var
end
=
format
.encodeUTF8(
format
.decodeHex(hex)); //console.
log
(hex,
end
);
assert
(start ===
end
);