normalize-space-x

WebJar for normalize-space-x

Лицензия

Лицензия

MIT
Категории

Категории

ORM Данные
Группа

Группа

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

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

normalize-space-x
Последняя версия

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

3.0.0
Дата

Дата

Тип

Тип

jar
Описание

Описание

normalize-space-x
WebJar for normalize-space-x
Ссылка на сайт

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

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

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

https://github.com/Xotic750/normalize-space-x

Скачать normalize-space-x

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

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

Зависимости

compile (3)

Идентификатор библиотеки Тип Версия
org.webjars.npm : cached-constructors-x jar [1.0.0,2)
org.webjars.npm : trim-x jar [3.0.0,4)
org.webjars.npm : white-space-x jar [3.0.0,4)

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

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

Travis status Dependency status devDependency status npm version jsDelivr hits bettercodehub score Coverage Status

Coverage Status

normalize-space-x

Trims and replaces sequences of whitespace characters by a single space.

module.exports(string)string

normalize-space-xstring

This method strips leading and trailing white-space from a string, replaces sequences of whitespace characters by a single space, and returns the resulting string. (ES2019)

Kind: static property of normalize-space-x
Returns: string - The normalized string.
Throws:

  • TypeError If string is null or undefined or not coercible.
Param Type Description
string string The string to be normalized.

Example

import normalizeSpace from 'normalize-space-x';

console.log(normalizeSpace(' \t\na \t\nb \t\n') === 'a b'); // true

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

Версия
3.0.0