typographic-single-linefeeds

1.0.1 • Public • Published

typographic-single-linefeeds

NPM version Build Status Coveralls Status Dependency Status DevDependency Status

Only when you want a new paragraph

Micro module to help eliminate one of the bad typewriter habits.

Install

npm install --save typographic-single-linefeeds

Usage

var singleLinefeeds = require('typographic-single-linefeeds');
 
singleLinefeeds(`foo\n\nbar`);    // foo\nbar
singleLinefeeds(`foo\n\n\nbar`);  // foo\nbar
singleLinefeeds(`\n\n\nfoo`);     // foo
singleLinefeeds(`foo\n\n\n`);     // foo

License

MIT © Vladimir Starkov

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.0.12latest

Version History

VersionDownloads (Last 7 Days)Published
1.0.12
1.0.00
0.0.10

Package Sidebar

Install

npm i typographic-single-linefeeds

Weekly Downloads

2

Version

1.0.1

License

MIT

Last publish

Collaborators

  • iamstarkov