Skip to content
The cheesy object formatter
Branch: master
Clone or download
Latest commit b9a00b4 Mar 4, 2019


Build status Coverage Status

The cheesy object formatter

Pretty formatting of arbitrary JavaScript values. Currently only supports ascii formatting, suitable for command-line utilities. Like JSON.stringify, it formats objects recursively, but unlike JSON.stringify, it can handle regular expressions, functions, circular objects and more.

formatio is a general-purpose library. It works in browsers (including old and rowdy ones, like IE6) and Node. It will define itself as an AMD module if you want it to (i.e. if there's a define function available).


npm install @sinonjs/formatio



Support us with a monthly donation and help us continue our activities. [Become a backer]


Become a sponsor and get your logo on our README on GitHub with a link to your site. [Become a sponsor]


formatio was released under BSD-3

You can’t perform that action at this time.