Skip to content

Commit

Permalink
docs: readme
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacdarcilla authored Sep 19, 2023
1 parent bd9d48e commit cd78628
Showing 1 changed file with 39 additions and 4 deletions.
43 changes: 39 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,46 @@
# filipino-script-translator
## filipino-script-translator

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

## Install
### Installation

```bash
npm install filipino-script-translator
```

## Usage
### Usage

Import the function and the enum fom the package.
You can change the `script` parameter into one of the enums, the default is `BAYBAYIN`.

```ts
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ᝇ
```

### Testing

```
npm run test
```

### Linting

```
npm run lint
```

### License

This package is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT).

0 comments on commit cd78628

Please sign in to comment.