por-extenso

1.2.1 • Public • Published

por-extenso

Brazilian Portuguese numbers in full.

Usage

$ npm install por-extenso
(...)
$ node
> var porExtenso = require('./lib/por-extenso')
undefined
> porExtenso('9') // accepts an integer String
'nove'
> porExtenso(99) // or an integer Number
'noventa e nove'
> porExtenso('eu tenho 99 balões') // in the middle of a text
'eu tenho noventa e nove balões'
> porExtenso.parse('eu tenho noventa e nove balões') // and also the other way around
'eu tenho 99 balões'

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.2.1
    33
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.2.1
    33
  • 1.2.0
    0
  • 1.1.1
    0
  • 1.1.0
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i por-extenso

Weekly Downloads

31

Version

1.2.1

License

Fair

Last publish

Collaborators

  • talles