rezapadillah / newline-br

Prepend `<br>` to newlines in a string

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Prepend `<br>` to newlines in a string

License:MIT License


Languages

Language:JavaScript 100.0%