JSPM

Found 26 results for newlines

trim-newlines

Trim newlines from the start and/or end of a string

  • v5.0.0
  • 117.71
  • Published

eol

Newline character converter

  • v0.10.0
  • 104.22
  • Published

trim-off-newlines

Similar to String#trim() but removes only newlines

  • v1.0.3
  • 97.09
  • Published

split-lines

Split lines into an array of lines

  • v3.0.0
  • 86.54
  • Published

lintspaces

Library for checking spaces in files

  • v0.12.1
  • 71.93
  • Published

count-lines

Count the lines in a string, works with windows carriage returns or unix style newlines.

  • v0.1.2
  • 71.88
  • Published

char-split

splits an stream on a character (e.g. \n) and emits the strings in between

  • v0.2.0
  • 65.45
  • Published

selective-whitespace

Condense all string whitespace + options to preserve specific whitespace characters.

  • v1.0.4
  • 60.98
  • Published

remark-heading-gap

remark plugin to adjust the gap between headings

  • v6.0.0
  • 55.52
  • Published

line-count

Count the lines in a string.

  • v0.1.0
  • 51.89
  • Published

grunt-lintspaces

A Grunt task for checking spaces in files

  • v0.12.0
  • 50.25
  • Published

on-new-line

Hijacks NodeJS Stream and emits events when newline(s) written to the output.

  • v1.0.0
  • 43.62
  • Published

cr

Strip windows carriage returns, or convert carriage returns to newlines.

  • v0.1.0
  • 41.64
  • Published

join-newlines

Join an array of strings with newlines

  • v2.0.2
  • 28.34
  • Published

lines-to-paragraphs

A JavaScript module that converts new lines to paragraph tags.

  • v1.0.3
  • 23.30
  • Published

slice-lines

Extract a subset of lines from a string efficiently

  • v1.0.3
  • 12.67
  • Published

join2

combine stream chunks pairwise

  • v0.1.0
  • 9.87
  • Published

postcss-between

PostCSS plugin that handles spacing between blocks for a more readable stylesheet

  • v1.0.6
  • 7.64
  • Published

newline-to-br

Format newlines to <br> tags

  • v1.0.0
  • 6.48
  • Published

fix-newlines-in-json-strings

Process a JSON string and converts actual newlines that appear in a string into an escaped newline.

  • v1.0.0
  • 6.34
  • Published

n-lines

Add any number of newlines to a string

  • v1.0.5
  • 4.82
  • Published

split-anything

split for files, streams, or any text really

  • v0.3.0
  • 2.81
  • Published