leftpad


License

License

GroupId

GroupId

io.github.asakaev
ArtifactId

ArtifactId

leftpad_2.13
Last Version

Last Version

0.1.6
Release Date

Release Date

Type

Type

jar
Description

Description

leftpad
leftpad
Project URL

Project URL

https://github.com/asakaev/leftpad
Project Organization

Project Organization

io.github.asakaev
Source Code Management

Source Code Management

https://github.com/asakaev/leftpad

Download leftpad_2.13

How to add to project

<!-- https://jarcasting.com/artifacts/io.github.asakaev/leftpad_2.13/ -->
<dependency>
    <groupId>io.github.asakaev</groupId>
    <artifactId>leftpad_2.13</artifactId>
    <version>0.1.6</version>
</dependency>
// https://jarcasting.com/artifacts/io.github.asakaev/leftpad_2.13/
implementation 'io.github.asakaev:leftpad_2.13:0.1.6'
// https://jarcasting.com/artifacts/io.github.asakaev/leftpad_2.13/
implementation ("io.github.asakaev:leftpad_2.13:0.1.6")
'io.github.asakaev:leftpad_2.13:jar:0.1.6'
<dependency org="io.github.asakaev" name="leftpad_2.13" rev="0.1.6">
  <artifact name="leftpad_2.13" type="jar" />
</dependency>
@Grapes(
@Grab(group='io.github.asakaev', module='leftpad_2.13', version='0.1.6')
)
libraryDependencies += "io.github.asakaev" % "leftpad_2.13" % "0.1.6"
[io.github.asakaev/leftpad_2.13 "0.1.6"]

Dependencies

compile (1)

Group / Artifact Type Version
org.scala-lang : scala-library jar 2.13.4

Project Modules

There are no modules declared in this project.

leftpad

build Maven Central

String left pad heavily inspired by left-pad.

Install

libraryDependencies ++= List(
  "io.github.asakaev" %% "leftpad-core",
  "io.github.asakaev" %% "leftpad-refined"
).map(_ % "<version>")

Usage

import io.github.asakaev.leftpad.string._

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

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

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

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

License

leftpad is licensed under the MIT license.

Versions

Version
0.1.6
0.1.5
0.1.4
0.1.3
0.1.2
0.1.1
0.1.0