UNPKG

multilingual-number-to-words

Version:

Converts to number in to words. one can get words written in any language. users can add there own language if not included

17 lines 449 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); class Single { constructor(lan) { this._lan = lan; } getWord(_number) { let curIndex = _number; let ret = ""; if (curIndex >= 0 && curIndex < 10) { ret = this._lan.single_digits[curIndex]; } return ret.trim(); } } exports.default = Single; //# sourceMappingURL=singleDigits.js.map