redent

WebJar for redent

Лицензия

Лицензия

MIT
Группа

Группа

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

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

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

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

2.0.0
Дата

Дата

Тип

Тип

jar
Описание

Описание

redent
WebJar for redent
Ссылка на сайт

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

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

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

https://github.com/sindresorhus/redent

Скачать redent

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

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

Зависимости

compile (2)

Идентификатор библиотеки Тип Версия
org.webjars.npm : indent-string jar [3.0.0,4)
org.webjars.npm : strip-indent jar [2.0.0,3)

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

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

redent

Strip redundant indentation and indent the string

Install

$ npm install redent

Usage

const redent = require('redent');

redent('\n  foo\n    bar\n', 1);
//=> '\n foo\n   bar\n'

API

redent(string, count?, options?)

string

Type: string

The string to normalize indentation.

count

Type: number
Default: 0

How many times you want options.indent repeated.

options

Type: object

indent

Type: string
Default: ' '

The string to use for the indent.

includeEmptyLines

Type: boolean
Default: false

Also indent empty lines.


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.

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

Версия
2.0.0
1.0.0