@cjser/newline-br
v2.0.0-cjser.2
Published
Prepend `<br>` to newlines in a string
Maintainers
Readme
newline-br
Prepend
<br>to newlines in a string
Install
$ npm install newline-brUsage
import newlineBr from 'newline-br';
newlineBr('unicorn\nrainbow');
//=> 'unicorn<br>\nrainbow'cjser
This package is a CommonJS-compatible build generated by cjser for projects that still need require() support. The source version matches the original npm package version, with a cjser prerelease suffix for this generated build.
Original repository: https://github.com/sindresorhus/newline-br
