JSPM

number-kor

1.0.3
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • 0
  • Score
    100M100P100Q29499F
  • License MIT

Parse numbers in korean to integer

Package Exports

  • number-kor

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (number-kor) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

number-kor

한글 숫자를 정수로 변환합니다.

사용법

브라우저

<script src="{path_to_js}/number-kor.js"></script>
<script>
  alert( Number.parseKor('천사') ); // 1004
</script>

node.js

설치

npm install number-kor

사용

const numberKor = require('number-kor');

const str = '천사';

if( numberKor.isOrdinal(str) ){
  console.log( numberKor.parseOrdinal(str) ); // 1004
}