Skip to content

jacealan/korean-syllable

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Korean-Syllable: 한글 음절 생성기

Korean-Syllable is the module that make any korean syllable.

Installation

npm install korea-syllable

Usage

Importing Korean-Syllable

import { koreanSyllable } from "korean-syllable"

Making any korean syllable(s)

1 syllable

const ex: string = koreanSyllable()
console.log(ex) // 촒

more syllables

const length: number = 10
const ex: string = koreanSyllable(length)
console.log(ex) // 줩뇅쳱펻뻘껨즰쌍쉁뺼죓

length is the length of syllables

with space

const length: number = 10
const withspace: boolean = true
const ex: string = koreanSyllable(length, withspace)
console.log(ex) // 둎찍굍 뺍푡롁 쯚럔

parameters

  • length, withspace가 없으면 한 음절 생성
  • withspace가 없거나 false면 공백 없이 원하는 길이의 음절 생성

at node console

$ node
Welcome to Node.js v16.13.1.
Type ".help" for more information.
> const { koreanSyllable } = require("korean-syllable")
undefined
> koreanSyllable()
''
> koreanSyllable(30)
'잂쬦룁캩탧릝쾹뭧퍱툾뛺땃뙾묧밟궯턉짋깖눅튰뇎깦쳟퐢옭헠힜솾뱬'
> koreanSyllable(30, true)
'녂퀘궠뮇 톫륂쥢뉓뎋맘 쁗푋혌잞 셇뛅듵놸 튚쯯 횓왒캔롛깴'
>

references

About

Korean-Syllable is the module that make any korean syllable.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published