kiruthiga 55473b7e7c initial push 5 ngày trước cách đây
..
index.js 55473b7e7c initial push 5 ngày trước cách đây
license 55473b7e7c initial push 5 ngày trước cách đây
package.json 55473b7e7c initial push 5 ngày trước cách đây
readme.md 55473b7e7c initial push 5 ngày trước cách đây

readme.md

trim-lines

Build Coverage Downloads Size

Remove spaces and tabs around line breaks.

Install

npm:

npm install trim-lines

Use

var trimLines = require('trim-lines')

trimLines(' foo\t\n\n bar \n\tbaz ') // => ' foo\nbar\nbaz '

API

trimLines(value)

Remove initial and final spaces and tabs at the line breaks in value (string). Does not trim initial and final spaces and tabs of the value itself. Returns the trimmed value.

License

MIT © Titus Wormer