trim-lines
Remove spaces and tabs around line-breaks
Last updated 5 months ago by wooorm .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install trim-lines 
SYNC missed versions from official npm registry.

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

Current Tags

  • 1.1.3                                ...           latest (5 months ago)

5 Versions

  • 1.1.3                                ...           5 months ago
  • 1.1.2                                ...           a year ago
  • 1.1.1                                ...           2 years ago
  • 1.1.0                                ...           4 years ago
  • 1.0.0                                ...           5 years ago
Maintainers (1)
Downloads
Today 49
This Week 1,747
This Month 3,602
Last Day 581
Last Week 2,952
Last Month 11,475
Dependencies (0)
None
Dev Dependencies (8)

Copyright 2014 - 2017 © taobao.org |