0.4.0 • Published 3 years ago

tallord v0.4.0

Weekly downloads
15
License
MIT
Repository
github
Last release
3 years ago

Tallord

VERY specific package to convert numbers to norwegian speech

Install

yarn add tallord

Use

import {tallord} from "tallord"
import nn from "tallord/i18n/nn"

const word = tallord(12312341) // tolv millioner, tre hundre og tolv tusen, tre hundre og førtién
const otherLocale = tallord(100, nn) // eitt hundre 

const yourOwn = tallord(256, {
  ...nn,
  baseSeparator: "-",
  tenSeparator: () => ""
}) // to-hundre-femtiseks
0.4.0

3 years ago

0.3.0

3 years ago

0.3.1

3 years ago

0.2.0

3 years ago

0.1.0

3 years ago