Skip to content

RyannKim327/Baybayin-Transliterator-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Baybayin Transliterator API

MPOP Reverse II

Since I try to create an API using NodeJs and Vercel, I create Baybayin Transliterator API just to test my skills in making some algorithms.


How to Use?

First is you need to call the url, with the GET method with text as key, just like the example below. It returns as a JSON and the key to call is baybay.


URL to call

Example NodeJs (Axios)

const axios = require("axios")

async function transliterate(text){
	let result = await axios.get("https://api-baybayin-transliterator.vercel.app/?text=" + text).then((r) => {  
		return r.data
	}).catch((e) => {
		console.error("Error [Baybayin API]: " + e)
		return null
	})
	return result
}

module.exports = async (data) => {
	let result = await transliterate(data)
	console.log(result)
}

Result

{
	"original": "your query",
	"baybay": "Baybayin Characters here"
}

Notice feedbacks and contact

If you found any error regarding this api, kindly email me @ weryses19@gmail.com with the screenshot attached of a particular error. This api is still in development, so expect some bugs.