npm.io
1.0.3 • Published 9 years ago

number-kor

Licence
MIT
Version
1.0.3
Deps
0
Vulns
0
Weekly
0
Stars
5

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
}

Keywords