0.0.5 • Published 10 months ago

korean-syllable v0.0.5

Weekly downloads
-
License
MIT
Repository
-
Last release
10 months ago

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

0.0.5

10 months ago

0.0.4

10 months ago

0.0.3

10 months ago

0.0.2

10 months ago

0.0.1

10 months ago