lines-to-paragraphs

v1.0.3
A JavaScript module that converts new lines to paragraph tags.
module javascript nodejs node paragraphs newlines lines br tags and 1 more...

Lines to Paragraphs npm version Build Status

A JavaScript module that converts new lines to paragraph tags.

Install

npm install lines-to-paragraphs --save-dev

Use

var paragraphs = require('lines-to-paragraphs');
var content = 'Lorem ipsum\n\nTesting more content';

paragraphs(content);

Release History

  • 1.0.3: Update documentation.
  • 1.0.2: Add tests.
  • 1.0.0: Initial release.

Contributing

  1. Fork it
  2. Run npm install
  3. Run Grunt watch grunt watch
  4. Create your feature branch (git checkout -b my-new-feature)
  5. Commit your changes (git commit -am "Add some feature")
  6. Push to the branch (git push origin my-new-feature)
  7. Create new Pull Request## License MIT © Ryan Burgess
npm i lines-to-paragraphs

Metadata

  • MIT
  • Whatever
  • Ryan Burgess @burgessdryan
  • released 3/18/2015

Downloads

Maintainers