trim-newlines

WebJar for trim-newlines

Лицензия

Лицензия

MIT
Группа

Группа

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

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

trim-newlines
Последняя версия

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

3.0.0
Дата

Дата

Тип

Тип

jar
Описание

Описание

trim-newlines
WebJar for trim-newlines
Ссылка на сайт

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

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

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

https://github.com/sindresorhus/trim-newlines

Скачать trim-newlines

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

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

Зависимости

Библиотека не имеет зависимостей. Это самодостаточное приложение, которое не зависит ни от каких других библиотек.

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

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

trim-newlines Build Status

Trim newlines from the start and/or end of a string

Install

$ npm install trim-newlines

Usage

const trimNewlines = require('trim-newlines');

trimNewlines('\n🦄\r\n');
//=> '🦄'

trimNewlines.start('\n🦄\r\n');
//=> '🦄\r\n'

trimNewlines.end('\n🦄\r\n');
//=> '\n🦄'

API

trimNewlines(string)

Trim from the start and end of a string.

trimNewlines.start(string)

Trim from the start of a string.

trimNewlines.end(string)

Trim from the end of a string.

Related

  • trim-left - Similar to String#trim() but removes only whitespace on the left
  • trim-right - Similar to String#trim() but removes only whitespace on the right.

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.0