collapse-white-space

WebJar for collapse-white-space

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

collapse-white-space
Last Version

Last Version

1.0.6
Release Date

Release Date

Type

Type

jar
Description

Description

collapse-white-space
WebJar for collapse-white-space
Project URL

Project URL

https://www.webjars.org
Source Code Management

Source Code Management

https://github.com/wooorm/collapse-white-space

Download collapse-white-space

How to add to project

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

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

collapse-white-space

Build Coverage Downloads Size

Replace multiple whitespace characters with a single space.

Install

npm:

npm install collapse-white-space

Use

var collapse = require('collapse-white-space')

collapse('\tfoo \n\tbar  \t\r\nbaz') //=> ' foo bar baz'

API

collapse(value)

Replace multiple whitespace characters in value with a single space.

License

MIT © Titus Wormer

Versions

Version
1.0.6
1.0.5
1.0.4
1.0.3
1.0.2