newline-to-br
Format newlines to <br>
tags. Supports linux, osx and windows newlines.
Installation
npm install newline-to-br
Usage
var toBr = ; ; // => 'This page cannot be displayed because <br> computer is currently offline'
{}
Why?
Because by changing our newlines to <br>
tags we can add custom styling which
gives us finer-grained control over our text.