Neolithic Psychedelic Mushrooms

npm

Does your artifact manager get in the way? Join us on Oct. 8 at 10am PT, to discuss how npm can help.Sign up »

trim-x

4.1.2 • Public • Published

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\n\t\n') === 'a'); // true

install

npm i trim-x

Downloadsweekly downloads

16,481

version

4.1.2

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability