trim-lines

WebJar for trim-lines

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

trim-lines
Last Version

Last Version

1.1.3
Release Date

Release Date

Type

Type

jar
Description

Description

trim-lines
WebJar for trim-lines
Project URL

Project URL

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

Source Code Management

https://github.com/wooorm/trim-lines

Download trim-lines

How to add to project

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

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.

trim-lines

Build Coverage Downloads Size

Remove spaces and tabs around line breaks.

Install

npm:

npm install trim-lines

Use

var trimLines = require('trim-lines')

trimLines(' foo\t\n\n bar \n\tbaz ') // => ' foo\nbar\nbaz '

API

trimLines(value)

Remove initial and final spaces and tabs at the line breaks in value (string). Does not trim initial and final spaces and tabs of the value itself. Returns the trimmed value.

License

MIT © Titus Wormer

Versions

Version
1.1.3
1.1.2