npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

jongseong

v0.4.2

Published

Hangul jongseong checker

Downloads

8,999

Readme

종성 jongseong

Travis Codecov license npm 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