lpad

WebJar for lpad

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

lpad
Last Version

Last Version

1.0.0
Release Date

Release Date

Type

Type

jar
Description

Description

lpad
WebJar for lpad
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/sindresorhus/lpad

Download lpad

How to add to project

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

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.

lpad Build Status

Left pad each line in a string

Install

$ npm install --save lpad

Usage

const lpad = require('lpad');

const str = 'foo\nbar';
/*
foo
bar
*/

lpad(str, '    ');
/*
    foo
    bar
*/

API

lpad(input, pad)

Pads each line in a string with the supplied string.

input

Type: string

String that will be padded.

pad

Type: string

String that will be prepended to each line.

License

MIT © Sindre Sorhus

Versions

Version
1.0.0