A lightweight module to convert numbers from Arabic to Japanese characters.
npm install --save nihon-numbers
processNumber(number)
Converts the input number into Japanese characters.
number: number
: The input integer to convert. Note: any decimal values will be rounded down.
string
: The character representation of the input number.
import { default as processNumber } from 'nihon-numbers';
const number = processNumber(3800);
console.log(number); //Outputs: 三千八百
npm run test