filipino-script-translator
Translate given text into Baybayin, Buhid, Hanunoo, or Tagbanwa scripts.
![codecov](https://codecov.io/gh/isaacdarcilla/filipino-script-translator/graph/badge.svg?token=GYELibxicI)
Demonstration
![Deploy with Vercel](https://vercel.com/button)
Installation
npm install filipino-script-translator
Usage
Import the translate()
and the enum
from the package.
Change the script
parameter into one of the enums, the default is BAYBAYIN
:
import { Script, translate } from 'filipino-script-translator';
const result = translate('maganda', Script.BAYBAYIN);
const result = translate('maganda', Script.TAGBANWA);
const result = translate('maganda', Script.HANUNOO);
const result = translate('maganda', Script.BUHID);
or directly use the translator methods base on the script you want:
import { toBaybayin, toBuhid, toHanunoo, toTagbanwa } from 'filipino-script-translator';
const result = toBaybayin('maganda');
const result = toTagbanwa('maganda');
const result = toHanunoo('maganda');
const result = toBuhid('maganda');
Package
The package is available in npmjs.com at
filipino-script-translator.
Testing
npm run test
Linting
npm run lint
Building
npm run build
License
This package is open-sourced software licensed under the MIT license.