{"library":"cli-sprintf-format","type":"library","category":null,"description":"cli-sprintf-format is a utility package that provides an enhanced `sprintf`-like formatting function specifically tailored for command-line interface (CLI) applications. It builds upon Node.js's `util.formatWithOptions`, offering more robust type resolution, error handling, and intelligent color support. The package automatically detects terminal color capabilities via `supports-color` and applies coloring not only to inspected objects but also to primitive values, including colored JSON output. The current stable version is 1.1.1, released in late 2021, suggesting a relatively stable but infrequent release cadence focused on maintenance and bug fixes. Key differentiators include its improved object inspection depth (defaulting to 4, configurable via `FORMAT_INSPECT_DEPTH`) and specialized handling of `%s` and `%#s` format specifiers for string output, allowing for colored and inline display or raw string output, respectively.","language":"javascript","status":"active","version":"1.1.1","tags":["javascript","printf","sprintf","log","format","string","cli","ansi"],"last_verified":"Wed May 27","install":[{"cmd":"npm install cli-sprintf-format","imports":["import cliFormat from 'cli-sprintf-format';","const cliFormat = require('cli-sprintf-format');"]},{"cmd":"yarn add cli-sprintf-format","imports":[]},{"cmd":"pnpm add cli-sprintf-format","imports":[]}],"homepage":null,"github":"https://github.com/medikoo/cli-sprintf-format","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/cli-sprintf-format","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/cli-sprintf-format/compatibility"}}