detab

WebJar for detab

Лицензия

Лицензия

MIT
Группа

Группа

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

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

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

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

2.0.3
Дата

Дата

Тип

Тип

jar
Описание

Описание

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

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

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

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

https://github.com/wooorm/detab

Скачать detab

Имя Файла Размер
detab-2.0.3.pom
detab-2.0.3.jar 4 KB
detab-2.0.3-sources.jar 22 bytes
detab-2.0.3-javadoc.jar 22 bytes
Обзор

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

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

Зависимости

compile (1)

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

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

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

detab

Build Coverage Downloads Size

Detab: tabs → spaces.

Install

npm:

npm install detab

Use

var detab = require('detab')

console.log(detab('\tfoo\nbar\tbaz'))
console.log(detab('\tfoo\nbar\tbaz', 2))
console.log(detab('\tfoo\nbar\tbaz', 8))

Yields:

    foo
bar baz
  foo
bar baz
        foo
bar     baz

API

detab(value[, size=4])

Replace tabs with spaces in value (string), being smart about which column the tab is at and which size (number, default: 4) should be used.

License

MIT © Titus Wormer

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

Версия
2.0.3
2.0.2