tallord

0.4.0 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i tallord

Weekly Downloads

331

Version

0.4.0

License

MIT

Unpacked Size

5.88 kB

Total Files

7

Last publish

Collaborators

  • slem