atypograf
This is Node.js library for ArtLebedev's typograf http://www.artlebedev.ru/tools/typograf/
Usage
Library can be downloaded through npm easily npm install atypograf
Then atypograf is easy to use as the following:
var typograf = ; typograf;
Options
Parameter | Description |
---|---|
type | Defines type of result entities that will be considered by typograf. Following consstants are defined in exported object: TYPE_HTML_ENTITIES, TYPE_XML_ENTITIES, TYPE_NO_ENTITIES (default) and TYPE_MIXED_ENTITIES. |
useBr | 1 – if you want typograf to add br-s. 0 – otherwise (default) |
useP | 1 – if you want typograf to add p-s. 0 – otherwise (default) |
maxNobr | (integer) max number of nobr-s. Default 0 |