newline-br

2.0.0 • Public • Published

newline-br

Prepend <br> to newlines in a string

Install

$ npm install newline-br

Usage

import newlineBr from 'newline-br';

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

/newline-br/

    Package Sidebar

    Install

    npm i newline-br

    Weekly Downloads

    171

    Version

    2.0.0

    License

    MIT

    Unpacked Size

    2.21 kB

    Total Files

    4

    Last publish

    Collaborators

    • sindresorhus