number_to_string
This converts to number in to words This module is written in typescript
How to use
use this command to include node module
npm i --save number_to_string
Below the code for using in Javascript file
Below the code for using in Javascript file
var curNumberModule = require('number_to_string');
var curValue = new curNumberModule.number_to_string();
// first value
var firstString = curValue.get_string(3456);//three thousand four hundred fifty six
console.log(firstString);
// second value
var secondString = curValue.get_string(9130456456);// nine hundred thirteen crore four lakh fifty six thousand four hundred fifty six
console.log(secondString);
Below the code for using in Typescript file
Below the code for using in Typescript file
import * as stringNumber from './index';
let curValue = new stringNumber.number_to_string();
// first value
let firstString = curValue.get_string(3456);//three thousand four hundred fifty six
console.log(firstString);
// second value
let secondString = curValue.get_string(9130456456);// nine hundred thirteen crore four lakh fifty six thousand four hundred fifty six
console.log(secondString);