Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
const numero = require('numero-por-extenso');
const monetario = 5234.5;
const porcentagem = 45;
//monetário
console.log(numero.porExtenso(monetario, numero.estilo.monetario));
//porcentagem
console.log(numero.porExtenso(porcentagem, numero.estilo.porcentagem));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment