strip-indent

WebJar for strip-indent

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

strip-indent
Last Version

Last Version

3.0.0
Release Date

Release Date

Type

Type

jar
Description

Description

strip-indent
WebJar for strip-indent
Project URL

Project URL

https://www.webjars.org
Source Code Management

Source Code Management

https://github.com/sindresorhus/strip-indent

Download strip-indent

How to add to project

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

Dependencies

compile (1)

Group / Artifact Type Version
org.webjars.npm : min-indent jar [1.0.0,2)

Project Modules

There are no modules declared in this project.

strip-indent Build Status

Strip leading whitespace from each line in a string

The line with the least number of leading whitespace, ignoring empty lines, determines the number to remove.

Useful for removing redundant indentation.

Install

$ npm install strip-indent

Usage

const stripIndent = require('strip-indent');

const string = '\tunicorn\n\t\tcake';
/*
	unicorn
		cake
*/

stripIndent(string);
/*
unicorn
	cake
*/

Related


Get professional support for this package with a Tidelift subscription
Tidelift helps make open source sustainable for maintainers while giving companies
assurances about security, maintenance, and licensing for their dependencies.

Versions

Version
3.0.0
2.0.0
1.0.1
1.0.0