antv-l7/node_modules/trim-lines
thinkinggis f7e5376b7d fix(fix css): fix css png 2019-11-22 18:04:14 +08:00
..
index.js fix(fix css): fix css png 2019-11-22 18:04:14 +08:00
license fix(fix css): fix css png 2019-11-22 18:04:14 +08:00
package.json fix(fix css): fix css png 2019-11-22 18:04:14 +08:00
readme.md fix(fix css): fix css png 2019-11-22 18:04:14 +08:00

readme.md

trim-lines

Build Coverage Downloads Size

Remove spaces and tabs around line-breaks.

Installation

npm:

npm install trim-lines

Usage

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