Skip to content

Commit cd78628

Browse files
docs: readme
1 parent bd9d48e commit cd78628

File tree

1 file changed

+39
-4
lines changed

1 file changed

+39
-4
lines changed

β€ŽREADME.md

Lines changed: 39 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,46 @@
1-
# filipino-script-translator
1+
## filipino-script-translator
22

3-
Translate text into Baybayin, Buhid, or Tagbanwa scripts.
3+
Translate given text into Baybayin, Buhid, Hanunoo, or Tagbanwa scripts.
44

5-
## Install
5+
### Installation
66

77
```bash
88
npm install filipino-script-translator
99
```
1010

11-
## Usage
11+
### Usage
12+
13+
Import the function and the enum fom the package.
14+
You can change the `script` parameter into one of the enums, the default is `BAYBAYIN`.
15+
16+
```ts
17+
import { Script, translate } from 'filipino-script-translator';
18+
19+
const result = translate('maganda', Script.BAYBAYIN);
20+
// Output: αœ‹αœ„αœˆαœ”αœ‡
21+
22+
const result = translate('maganda', Script.TAGBANWA);
23+
// Output: ᝫᝀᝧ
24+
25+
const result = translate('maganda', Script.HANUNOO);
26+
// Output: ᜫᜀᜨ᜴ᜧ
27+
28+
const result = translate('maganda', Script.BUHID);
29+
// Output: ᝋᝄnᝇ
30+
```
31+
32+
### Testing
33+
34+
```
35+
npm run test
36+
```
37+
38+
### Linting
39+
40+
```
41+
npm run lint
42+
```
43+
44+
### License
45+
46+
This package is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT).

0 commit comments

Comments
Β (0)