/newline-br

Prepend `<br>` to newlines in a string

Primary LanguageJavaScriptMIT LicenseMIT

newline-br Build Status

Prepend <br> to newlines in a string

Install

$ npm install newline-br

Usage

const newlineBr = require('newline-br');

newlineBr('unicorn\nrainbow');
//=> 'unicorn<br>\nrainbow'

License

MIT © Sindre Sorhus