strip-indent

WebJar for strip-indent

Лицензия

Лицензия

MIT
Группа

Группа

org.webjars.npm
Идентификатор

Идентификатор

strip-indent
Последняя версия

Последняя версия

3.0.0
Дата

Дата

Тип

Тип

jar
Описание

Описание

strip-indent
WebJar for strip-indent
Ссылка на сайт

Ссылка на сайт

https://www.webjars.org
Система контроля версий

Система контроля версий

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

Скачать strip-indent

Как подключить последнюю версию

<!-- 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"]

Зависимости

compile (1)

Идентификатор библиотеки Тип Версия
org.webjars.npm : min-indent jar [1.0.0,2)

Модули Проекта

Данный проект не имеет модулей.

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.

Версии библиотеки

Версия
3.0.0
2.0.0
1.0.1
1.0.0