JSPM

typographic-single-spaces

1.0.2
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1691
  • Score
    100M100P100Q130880F
  • License MIT

Always one—never two

Package Exports

  • typographic-single-spaces

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (typographic-single-spaces) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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