JSPM

typographic-en-dashes

1.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 6899
  • Score
    100M100P100Q139435F
  • License MIT

Use them, don’t confuse them

Package Exports

  • typographic-en-dashes

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-en-dashes) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

typographic-en-dashes

NPM version Build Status Coveralls Status Dependency Status DevDependency Status

Use them, don’t confuse them

Micro module to help eliminate one of the bad typewriter habits. Safely replacing hyphens in a range of values with en dashes only.

Install

npm install --save typographic-en-dashes

Usage

var endashes = require('typographic-en-dashes');

endashes(`Kurt Cobain (1967-1994)`); // Kurt Cobain (1967–1994)

Real world examples

Check complex usage with real world examples in typography playground.

License

MIT © Vladimir Starkov