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

/typographic-single-linefeeds/

    Package Sidebar

    Install

    npm i typographic-single-linefeeds

    Weekly Downloads

    2

    Version

    1.0.1

    License

    MIT

    Last publish

    Collaborators

    • iamstarkov