UNPKG
anvim-ts
Version:
latest (0.1.1)
0.1.1
0.1.0
AVIM-compatible Vietnamese input engine in TypeScript
github.com/anhngw/anvim.ts
anhngw/anvim.ts
anvim-ts
/
dist
/
index.js
10 lines
(9 loc)
•
286 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
export { AnvimEngine }
from
"./anvim"
; import { AnvimEngine }
from
"./anvim"
;
export
default
function
anvim
(
input
)
{
const
engine =
new
AnvimEngine();
let
out
=
""
;
for
(
let
i =
0
; i < input.length; i++)
out
= engine.processWithKey(
out
, input[i]);
return
out
; }