nl2br-x

0.1.2 • Public • Published

nl2brX

JS module for converting newlines to line breaks in BEMHTML and BEMTREE syntax.

Install

$ npm install nl2br-x

Example

const nl2brX  = require('nl2br-x');
 
console.log(nl2brX(`Hello
world
!!!`)); // ['Hello', {tag: 'br'}, 'world', {tag: 'br'}, '!!!']

Dependents (0)

Package Sidebar

Install

npm i nl2br-x

Weekly Downloads

1

Version

0.1.2

License

MIT

Unpacked Size

4.17 kB

Total Files

5

Last publish

Collaborators

  • zakaratcha