This is a javascript utility that parse "Korean Numbers"(like 백이십삼만) to a numeric value.
You can install via npm:
$ npm install korean-numbers
or download korean-numbers.js directly.
korean-numbers.js is available in CommonJS and AMD module formats.
Loading:
// In CommonJS module
var koreanNumbers = require('korean-numbers');
// In AMD module
require([
'koreanNumbers'
], function (koreanNumbers) {
...
});
Parsing:
// Parse korean numbers
koreanNumbers.parse('백이십삼만'); //-> 1230000
koreanNumbers.parse('123만'); //-> 1230000
// Parse korean money
koreanNumbers.parseMoney('백이십삼만원'); //-> 1230000
koreanNumbers.parseMoney('123만원'); //-> 1230000
$ npm test
korean-numbers.js is freely distributable under the terms of the MIT license.