min-indent

WebJar for min-indent

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

min-indent
Last Version

Last Version

1.0.1
Release Date

Release Date

Type

Type

jar
Description

Description

min-indent
WebJar for min-indent
Project URL

Project URL

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

Source Code Management

https://github.com/jamiebuilds/min-indent

Download min-indent

How to add to project

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

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.

min-indent Build Status

Get the shortest leading whitespace from lines in a string

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

Useful for removing redundant indentation.

Install

$ npm install --save min-indent

Usage

const minIndent = require('min-indent');

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

minIndent(str); // 1

Related

License

MIT © James Kyle

Versions

Version
1.0.1