korean-syllable

0.0.5 • Public • Published

Korean-Syllable: 한글 음절 생성기

This module was moved @jacepkg/korean

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

Readme

Keywords

none

Package Sidebar

Install

npm i korean-syllable

Weekly Downloads

0

Version

0.0.5

License

MIT

Unpacked Size

5.22 kB

Total Files

3

Last publish

Collaborators

  • jacealan