Skip to content

iamstarkov/typographic-single-linefeeds

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Only when you want a new paragraph

Resources

Stars

Watchers

Forks

Packages

No packages published