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
kor_number
한글 숫자를 정수로 변환합니다.
사용법
브라우저
<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
}