prettify-numbers
TypeScript icon, indicating that this package has built-in type declarations

1.0.4 • Public • Published

prettify-numbers

Add thousands and decimal separator to numbers

Installation

npm install prettify-numbers --save

Usage

Javascript

var prettifyNum = require('prettify-numbers');
var prettyNum = prettifyNum.default()(100000.1, ' ', ',');
Output should be '100 000,1'

TypeScript

import prettyNum from 'prettify-numbers';
console.log(prettyNum(100000.1, ' ', ','))
Output should be '100 000,1'

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i prettify-numbers

Weekly Downloads

796

Version

1.0.4

License

MIT

Unpacked Size

2.7 kB

Total Files

5

Last publish

Collaborators

  • fyvfyv