trim-x

WebJar for trim-x

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

trim-x
Last Version

Last Version

3.0.0
Release Date

Release Date

Type

Type

jar
Description

Description

trim-x
WebJar for trim-x
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/Xotic750/trim-x

Download trim-x

How to add to project

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

Dependencies

compile (2)

Group / Artifact Type Version
org.webjars.npm : trim-left-x jar [3.0.0,4)
org.webjars.npm : trim-right-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

trim-x

This method removes whitespace from the start and end of a string.

module.exports(string)number

trim-xstring

This method removes whitespace from the start and end of a string. (ES2019)

Kind: static property of trim-x
Returns: string - The trimmed string.
Throws:

  • TypeError If string is null or undefined or not coercible.
Param Type Description
string string The string to trim the whitespace from.

Example

import trim from 'trim-x';

console.log(trim(' \t\na \t\n') === 'a'); // true

Versions

Version
3.0.0