left-pad

WebJar for left-pad

Лицензия

Лицензия

Группа

Группа

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

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

left-pad
Последняя версия

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

1.3.0
Дата

Дата

Тип

Тип

jar
Описание

Описание

left-pad
WebJar for left-pad
Ссылка на сайт

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

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

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

https://github.com/stevemao/left-pad

Скачать left-pad

Имя Файла Размер
left-pad-1.3.0.pom
left-pad-1.3.0.jar 3 KB
left-pad-1.3.0-sources.jar 22 bytes
Обзор

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

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

Зависимости

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

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

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

left-pad

String left pad

Build Status

Install

$ npm install left-pad

Usage

const leftPad = require('left-pad')

leftPad('foo', 5)
// => "  foo"

leftPad('foobar', 6)
// => "foobar"

leftPad(1, 2, '0')
// => "01"

leftPad(17, 5, 0)
// => "00017"

NOTE: The third argument should be a single char. However the module doesn't throw an error if you supply more than one chars. See #28.

NOTE: Characters having code points outside of BMP plane are considered two distinct characters. See #58.

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

Версия
1.3.0
1.2.0
1.1.3
0.0.4
0.0.3