UNPKG

zerotwomd

Version:

Multi device wa bot created by Team Zero Two.

28 lines (24 loc) 753 B
//═══════[© 2022 Xeon Bot Inc.]════════\\ //~you can re-upload but tag my channel //or put my channel link in the description. //~you can recode or copy the codes but give //credit. //~Thank you to LORD BUDDHA, ME AND MY //FAMILY. //═══════[codes]════════\\ async function dBinary(str) { var newBin = str.split(" ") var binCode = [] for (i = 0; i < newBin.length; i++) { binCode.push(String.fromCharCode(parseInt(newBin[i], 2))) } return binCode.join("") } async function eBinary(str = ''){ let res = '' res = str.split('').map(char => { return char.charCodeAt(0).toString(2); }).join(' ') return res } module.exports = { dBinary, eBinary }