detect-newline

WebJar for detect-newline

Лицензия

Лицензия

MIT
Группа

Группа

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

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

detect-newline
Последняя версия

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

2.1.0
Дата

Дата

Тип

Тип

jar
Описание

Описание

detect-newline
WebJar for detect-newline
Ссылка на сайт

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

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

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

https://github.com/sindresorhus/detect-newline

Скачать detect-newline

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

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

Зависимости

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

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

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

detect-newline

Detect the dominant newline character of a string

Install

$ npm install detect-newline

Usage

const detectNewline = require('detect-newline');

detectNewline('foo\nbar\nbaz\r\n');
//=> '\n'

API

detectNewline(string)

Returns the detected newline or undefined when no newline character is found.

detectNewline.graceful(unknown)

Returns the detected newline or \n when no newline character is found or the input is not a string.

Related

License

MIT © Sindre Sorhus

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

Версия
2.1.0