1.0.11 • Published 2 years ago

funky-number v1.0.11

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

funky-number

Description

Easily format a number to string with decimal and point separators

Install

npm i funky-number

Usage

const funkyNumber = require('funky-number');

funkyNumber(<number>, <decimalSeparator>);

console.log(funkyNumber(1000000.12))

[output] > '1.000.000,12'

Arguments

  • number (required)

  • decimalSeparator (optional)

decimalSeparator argument

decimalSeparator has to a string of a dot ('.') or a comma (',').

Exceptions

Function return false if the given number argument is not a valid number. If the separator is not a comma or a dot string the EU format is used as default

Repository

git@github.com:GkChris/funky-number.git

1.0.11

2 years ago

1.0.10

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago