|
|
5 ngày trước cách đây | |
|---|---|---|
| .. | ||
| index.js | 5 ngày trước cách đây | |
| license | 5 ngày trước cách đây | |
| package.json | 5 ngày trước cách đây | |
| readme.md | 5 ngày trước cách đây | |
Remove spaces and tabs around line breaks.
npm:
npm install trim-lines
var trimLines = require('trim-lines')
trimLines(' foo\t\n\n bar \n\tbaz ') // => ' foo\nbar\nbaz '
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.