left-right-trim

1.0.1 • Public • Published

left-right-trim

Removes whitespace on left and right of a string. Build with nan.

Install

# With npm 
npm i left-right-trim 

How to use

const leftRightTrim = require('left-right-trim');

leftRightTrim('   pizza   ') // ~> 'pizza'
leftRightTrim('   hello world') // ~> 'hello world'
leftRightTrim('burger   ') // ~> 'burger'

Package Sidebar

Install

npm i left-right-trim

Weekly Downloads

0

Version

1.0.1

License

MIT

Unpacked Size

4 kB

Total Files

6

Last publish

Collaborators

  • gntousakis