trim-trailing-lines

WebJar for trim-trailing-lines

License

License

MIT
GroupId

GroupId

org.webjars.bower
ArtifactId

ArtifactId

trim-trailing-lines
Last Version

Last Version

1.1.1
Release Date

Release Date

Type

Type

jar
Description

Description

trim-trailing-lines
WebJar for trim-trailing-lines
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

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

Download trim-trailing-lines

How to add to project

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

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-trailing-lines

Build Coverage Downloads Size

Remove final line feeds from a string.

Install

npm:

npm install trim-trailing-lines

Use

var trimTrailingLines = require('trim-trailing-lines')

trimTrailingLines('foo\nbar') // => 'foo\nbar'
trimTrailingLines('foo\nbar\n') // => 'foo\nbar'
trimTrailingLines('foo\nbar\n\n') // => 'foo\nbar'

API

trimTrailingLines(value)

Remove final line feed characters from value.

Parameters
  • value (string) — Value with trailing line feeds, coerced to string.
Returns

string — Value without trailing newlines.

License

MIT © Titus Wormer

Versions

Version
1.1.1