typogr.js 0.6.5

A small collection of rules and automated operations for enhancing a page's typography display, using JavaScript instead of CSS tricks
typogr.js - Normal text compared to stylized text
  1 Screenshot
The library works with Node on the server side, or as a stand-alone library in the browser (client side).

For Node.js environments, typogr.js is available through npm for installation.

A demo page is included with the typogr.js download package to help designers see how its rules are applied on a page's text.

Main features:

  • Wraps ampersands in HTML with so they can be styled with CSS
  • Wraps initial quotes in for double quotes or for single quotes
  • Wraps number suffix's in so they can be styled
  • Paragraph widowing protection
  • Dashes (“--” and “---”) into n-dash and m-dash entities (– | —)
  • Three consecutive dots (“...”) into an ellipsis entity (…)
  • Straight quotes ( " and ' '") into “curly” quote HTML entities (‘ | ’ | “ | ”)
  • Backticks-style quotes (``like this''') into “curly” quote HTML entities (‘ | ’ | “ | ”)

last updated on:
December 2nd, 2014, 15:50 GMT
developed by:
Eugene Kalinin
license type:

MIT License

operating system(s):
Windows / Linux / Mac OS / BSD / Solaris
C: \ Text Management \ Text Tools
Download Button

In a hurry? Add it to your Download Basket!

user rating



Rate it!
What's New in version 0.6.1
  • Used the "scripts" block in the package.json (npm test works properly).
  • Speed up widont regex.
read full changelog

Add your review!