1.1.2 • Published 10 months ago

korean-stroke v1.1.2

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

korean-stroke

  • korean-stroke는 한글 문자열의 획수를 계산해주는 JavaScript 라이브러리입니다.
  • korean-stroke is a JavaScript library for calculating the total stroke count of Korean characters in a string.

Installation

npm install korean-stroke

Usage

const strokeCounter = require('korean-stroke');

console.log(strokeCounter('안녕')); // 11

OR

import strokeCounter from 'korean-stroke'

console.log(strokeCounter('안녕')); // 11

Note: The strokeCounter function calculates the stroke count for Korean characters only. Any non-Korean characters in the input string will not be counted towards the total stroke count.

API

strokeCounter(string)

  • Parameters
    • string (String): The Korean string to calculate.
  • Returns
    • (Number): A total stroke count of the input string.

License

This project is provided under the MIT License.

1.1.1

10 months ago

1.1.2

10 months ago

1.1.0

10 months ago

1.0.1

11 months ago

1.0.0

11 months ago