New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

filipino-script-translator

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

filipino-script-translator

Translate text into Baybayin, Buhid, Hanunoo and Tagbanwa scripts.

  • 0.0.6
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-66.67%
Maintainers
1
Weekly downloads
 
Created
Source

filipino-script-translator

Translate given text into Baybayin, Buhid, Hanunoo, or Tagbanwa scripts.

js-standard-style npm version codecov

Demonstration

Deploy with Vercel

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);
// Output: ᜋᜄᜈ᜔ᜇ

const result = translate('maganda', Script.TAGBANWA);
// Output: ᝫᝤᝧ

const result = translate('maganda', Script.HANUNOO);
// Output: ᜫᜤᜨ᜴ᜧ

const result = translate('maganda', Script.BUHID);
// Output: ᝋᝄnᝇ

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');
// Output: ᜋᜄᜈ᜔ᜇ

const result = toTagbanwa('maganda');
// Output: ᝫᝤᝧ

const result = toHanunoo('maganda');
// Output: ᜫᜤᜨ᜴ᜧ

const result = toBuhid('maganda');
// Output: ᝋᝄnᝇ

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.

Keywords

FAQs

Package last updated on 25 Sep 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc