Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

jongseong

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jongseong

Hangul jongseong checker

  • 0.4.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
8.5K
decreased by-4.1%
Maintainers
1
Weekly downloads
 
Created
Source

종성 jongseong

Travis Codecov npm license Standard - JavaScript Style
Guide

한글 글자의 받침을 확인합니다.

Install

$ npm install --save jongseong

Usage

const { code, hasJongseong } = require('jongseong')

API

code(word)

마지막 글자의 받침 코드(0...27)를 반환합니다.

word

Required Type: string

code('가나다')  // =>  0
code('가나닥')  // =>  1
code('가나닶')  // => 18
code('가나닿')  // => 27
code('112')     // =>  0  (백십이)
code('113')     // => 16  (백십삼)
code('100')     // =>  1  (백)

hasJongseong(word)

마지막 글자에 받침이 있는지 여부를 반환합니다.

word

Required Type: string

hasJongseong('커피')  // => false
hasJongseong('코딩')  // => true
hasJongseong('105')  // => false  (백오)
hasJongseong('100')  // => true  (백)

받침 코드

받침 코드는 0부터 27까지의 정수입니다.

코드받침예시
0-
1
2ㄱㄱ
3ㄱㅅ
4
5ㄴㅈ
6ㄴㅎ
7
8
9ㄹㄱ
10ㄹㅁ
11ㄹㅂ
12ㄹㅅ
13ㄹㅌ
14ㄹㅍ
15ㄹㅎ
16
17
18ㅂㅅ
19
20ㅅㅅ
21
22
23
24
25
26
27

License

MIT © Kim Donghee

Keywords

FAQs

Package last updated on 24 Jan 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc