Translate numbers to spanish
npm install numero-a-textoSimple process in order to translate numbers to texts using spanish rules on cardinal numbering.
* See more in
Process considers forms 'apocopate' (apocopado) and gender using options provided to translate method.
* Number to translate is using only integer part in order to translate.
* Compatible for numbers between [0 ... 999.999.999.999] (1 billion - 1)
* Simplify translate process
* Decimal parts
* Automatic pluralization
``sh`
npm install --save numero-a-texto
`js
const numToText = require('numero-a-texto')
numToText.translate(154821)
numToText.translate(154821, { suffix: 'pesos'})
numToText.translate(154821, { suffix:'personas', gender: 'F' })