npm.io
1.1.6 • Published 7 years ago

zwc

Licence
ISC
Version
1.1.6
Deps
1
Size
2 kB
Vulns
0
Weekly
0

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!

Keywords