const axios = require("axios");
let baybay = async (text) => {
let result = await axios.get("https://api-baybayin-transliterator.vercel.app/?text=" + text).then(r => {
return r.data;
}).catch(e => {
emsp;console.error(e);
return null;
});
return result;
}
module.exports = async (data) => {
let output = await baybay(data);
console.log(output);
}
{
"original": "baybayin",
"baybay": "ᜊᜌ᜔ᜊᜌᜒᜈ᜔"
}