typographic-single-spaces

v1.0.2
Always one—never two
textr typographic spaces

typographic-single-spaces

NPM version Build Status Coveralls Status Dependency Status DevDependency Status

Always one—never two

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

Install

npm install --save typographic-single-spaces

Usage

var singleSpaces = require('typographic-single-spaces');

singleSpaces(`foo  bar`);  // foo bar
singleSpaces(`foo.  Bar`); // foo. Bar
singleSpaces(`foo,  bar`); // foo, bar

Real world examples

Check complex usage with real world examples in typography playground.

License

MIT © Vladimir Starkov

npm i typographic-single-spaces

Metadata

  • MIT
  • Whatever
  • Vladimir Starkov
  • released 4/16/2015

Downloads

Maintainers