normalize-space-x

WebJar for normalize-space-x

License

License

MIT
Categories

Categories

ORM Data
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

normalize-space-x
Last Version

Last Version

3.0.0
Release Date

Release Date

Type

Type

jar
Description

Description

normalize-space-x
WebJar for normalize-space-x
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

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

Download normalize-space-x

How to add to project

<!-- 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"]

Dependencies

compile (3)

Group / Artifact Type Version
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)

Project Modules

There are no modules declared in this project.

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

Versions

Version
3.0.0