1.0.1 • Published 3 years ago

left-right-trim v1.0.1

Weekly downloads
5
License
MIT
Repository
github
Last release
3 years ago

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'