format-thousands

WebJar for format-thousands

Лицензия

Лицензия

MIT
Категории

Категории

ORM Данные
Группа

Группа

org.webjars.npm
Идентификатор

Идентификатор

format-thousands
Последняя версия

Последняя версия

1.1.1
Дата

Дата

Тип

Тип

jar
Описание

Описание

format-thousands
WebJar for format-thousands
Ссылка на сайт

Ссылка на сайт

https://www.webjars.org
Система контроля версий

Система контроля версий

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

Скачать format-thousands

Как подключить последнюю версию

<!-- 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"]

Зависимости

Библиотека не имеет зависимостей. Это самодостаточное приложение, которое не зависит ни от каких других библиотек.

Модули Проекта

Данный проект не имеет модулей.

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

Версии библиотеки

Версия
1.1.1