format-thousands

WebJar for format-thousands

License

License

MIT
Categories

Categories

ORM Data
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

format-thousands
Last Version

Last Version

1.1.1
Release Date

Release Date

Type

Type

jar
Description

Description

format-thousands
WebJar for format-thousands
Project URL

Project URL

https://www.webjars.org
Source Code Management

Source Code Management

https://github.com/vovanr/format-thousands

Download format-thousands

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/format-thousands/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>format-thousands</artifactId>
    <version>1.1.1</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/format-thousands/
implementation 'org.webjars.npm:format-thousands:1.1.1'
// https://jarcasting.com/artifacts/org.webjars.npm/format-thousands/
implementation ("org.webjars.npm:format-thousands:1.1.1")
'org.webjars.npm:format-thousands:jar:1.1.1'
<dependency org="org.webjars.npm" name="format-thousands" rev="1.1.1">
  <artifact name="format-thousands" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='format-thousands', version='1.1.1')
)
libraryDependencies += "org.webjars.npm" % "format-thousands" % "1.1.1"
[org.webjars.npm/format-thousands "1.1.1"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

format-thousands

Commitizen friendly XO code style

NPM version Build Status Coveralls Status Dependency Status DevDependency Status

Format thousands with custom separator: 1 000 000

Demo: vovanr.github.io/format-thousands

Install

npm install --save format-thousands

Usage

var formatThousands = require('format-thousands');

formatThousands(1000);
//=> '1 000'

formatThousands(5000, {formatFourDigits: false});
//=> '5000'

formatThousands(1000000, '`');
//=> '1`000`000'

formatThousands(10000, {separator: "'"});
//=> "10'000"

formatThousands(-100000);
//=> "-100 000"

formatThousands(10000.0001)
//=> "10 000.0001"

formatThousands();
//=> ''

License

MIT © Vladimir Rodkin

Versions

Version
1.1.1