Like its Go counterpart, this module contains serialization functions, Web networking, fast and secure modern cryptography functions, and random number generation.
const etc = require("etc-js");
var b = new etc.Buffer();
b.writeInt(50000);
b.writeString("test");
var u = new etc.URL("http://example.com/");
u.store("data", b);
u.toString(); // http://example.com/?data=0IYDBHRlc3Q-
var d = u.load("data");
d.readInt(); // 50000
d.readString(); // "test"