File tree Expand file tree Collapse file tree 1 file changed +39
-4
lines changed Expand file tree Collapse file tree 1 file changed +39
-4
lines changed Original file line number Diff line number Diff line change 1
- # filipino-script-translator
1
+ ## filipino-script-translator
2
2
3
- Translate text into Baybayin, Buhid, or Tagbanwa scripts.
3
+ Translate given text into Baybayin, Buhid, Hanunoo , or Tagbanwa scripts.
4
4
5
- ## Install
5
+ ### Installation
6
6
7
7
``` bash
8
8
npm install filipino-script-translator
9
9
```
10
10
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 ) .
You canβt perform that action at this time.
0 commit comments