nihon-numbers
TypeScript icon, indicating that this package has built-in type declarations

1.0.13 • Public • Published

nihon-numbers

Node.js CI/CD GitHub issues NPM Licence npm bundle size npm total downloads npm version

A lightweight module to convert numbers from Arabic to Japanese characters.

Installation

npm install --save nihon-numbers

API

processNumber(number)

Converts the input number into Japanese characters.

Arguments

number: number: The input integer to convert. Note: any decimal values will be rounded down.

Returns

string: The character representation of the input number.

Usage

import { default as processNumber } from 'nihon-numbers';
const number = processNumber(3800);
console.log(number); //Outputs: 三千八百

Test

npm run test

Package Sidebar

Install

npm i nihon-numbers

Weekly Downloads

0

Version

1.0.13

License

MIT

Unpacked Size

4.55 kB

Total Files

5

Last publish

Collaborators

  • simpleprogramming