italian-words-to-numbers
v1.0.4
Published
Javascript library to translate Italian written numbers to its numeric value
Downloads
8
Maintainers
Readme
italian-words-to-numbers
Javascript library to translate Italian written numbers to its numeric value.
Works with correctly spelled integers from a value of -999.999.999 up to 999.999.999 ((meno) novecentonovantanove milioni e novecentonovantanovemilanovecentonovantanove).
Installation
Install using
npm install --save italian-words-to-numbers
Usage
const iWtoN = require('italian-words-to-numbers');
// or
import * as iWtoN from 'italian-words-to-numbers';
const number = iWtoN.convert('settecentosettantotto'); // => 778
Credits
Inspired by howlowck/words-to-num library for English numbers.