liststyletype-formatter

JSON →
library 1.0.0 ·javascript maintenance
verified Jun 4, 2026

JavaScript number formatter that converts integers to CSS list-style-type representations (e.g., decimal, lower-roman, upper-alpha, armenian, cjk-ideographic). Version 1.0.0, last updated in 2017. Supports all standard CSS list-style-type values plus many national/regional variants. Unlike CSS-only solutions, it works in JavaScript environments (Node.js or browser) for use in dynamic content generation, PDFs, or non-HTML contexts. The library provides a single function `format()` taking a number and a style string, returning the formatted string. It has no dependencies and is lightweight. However, it is no longer actively maintained (no updates since 2017).