1.0.13 • Published 11 months ago

nihon-numbers v1.0.13

Weekly downloads
2
License
MIT
Repository
github
Last release
11 months ago

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
1.0.10

11 months ago

1.0.13

11 months ago

1.0.12

11 months ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago