zero-fill

WebJar for zero-fill

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

zero-fill
Last Version

Last Version

2.2.3
Release Date

Release Date

Type

Type

jar
Description

Description

zero-fill
WebJar for zero-fill
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/feross/zero-fill

Download zero-fill

How to add to project

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

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.

zero-fill travis npm downloads javascript style guide

Zero-fill a number to the given size.

zero

install

npm install zero-fill

usage

var zeroFill = require('zero-fill')

zeroFill(4, 1) // '0001'
zeroFill(10, 55) // '0000000055'
zeroFill(1, 1) // '1'

Partial application:

zeroFill(4)(1) // '0001'

Custom padding character:

zeroFill(4, 55, ' ')  // '  55'
zeroFill(4, 500, ' ') // ' 500'

license

MIT. Copyright (c) Feross Aboukhadijeh.

Versions

Version
2.2.3