1.1.6 • Published 5 years ago
zwc v1.1.6
Zero-Width Character converter
I created an API, and I wanted to create a simple wrapper, here you go!
Usage:
const zwc = require('zwc');
const Encoder = new zwc.Encoder();
const Decoder = new zwc.Decoder();
async function myFirstConversion() {
let res_zwc = await Encoder.encode("this is a string, it can have any ASCII character in it!");
console.log(res_zwc);
let res_text = await Decoder.decode(res_zwc);
console.log(res_text);
}
myFirstConversion();
Make sure you catch any possible errors!