lines-to-paragraphs

A JavaScript module that converts new lines to paragraph tags.

Usage no npm install needed!

<script type="module">
  import linesToParagraphs from 'https://cdn.skypack.dev/lines-to-paragraphs';
</script>

README

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