A JavaScript tool that converts price number to letters.
run npm install price-to-letters
, and then
let c = require('price-to-letters');
c.spell(1); // 'One Dollar'
works on two decimal places, up to 999 trillion (c.spell(999999999999999)
).
- add French localization;
- space handling;
This tool is based on a piece of visual basic code provided by Microsoft for Excel (source). Created by Jiacheng Jiang.