Skip to content

ytseo/hangul-jamo-js

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

hangul-jamo-js

한글 자모음 라이브러리.

Pull requests are always welcome.

Interface

HANGUL.startsWith(haystack, needle)

haystackneedle로 시작하는지 여부 반환

> HANGUL.startsWith('가마니', '강철')
false
> HANGUL.startsWith('강철', '가')
true
> HANGUL.startsWith('강철', '강ㅊ')
true
> HANGUL.startsWith('강철', '철')
false

HANGUL.toJamos(str)

> HANGUL.toJamos('강철')
'ㄱㅏㅇㅊㅓㄹ'

HANGUL.toChosungs(str)

> HANGUL.toChosungs('강철')
'ㄱㅊ'

HANGUL.toJoongsungs(str)

> HANGUL.toJoongsungs('강철')
'ㅏㅓ'

HANGUL.toJongsungs(str)

> HANGUL.toJongsungs('강철')
'ㅇㄹ'

License

MIT

About

한글 자모 분리 라이브러리

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published