{"library":"cli-highlight","type":"library","category":null,"description":"cli-highlight is a utility for applying syntax highlighting to code and text within a terminal environment, leveraging the capabilities of highlight.js for language detection and tokenization. It provides both a command-line interface for piping input or reading files and a programmatic API for integrating highlighting into Node.js applications. The package is currently at version 2.1.11, with its last update in March 2021, suggesting a maintenance rather than active feature development cadence. Key differentiators include its robust language support inherited from highlight.js, the ability to define custom themes using Chalk styles for fine-grained control over terminal colors, and its seamless integration with other CLI tools through standard input/output piping. It is particularly useful for debugging, logging, or displaying code snippets in a more readable format directly in the console.","language":"javascript","status":"maintenance","version":"2.1.11","tags":["javascript","terminal","syntax","highlight","color","cli","ansi","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install cli-highlight","imports":["import { highlight } from 'cli-highlight';","const { highlight } = require('cli-highlight');","highlight package.json"]},{"cmd":"yarn add cli-highlight","imports":[]},{"cmd":"pnpm add cli-highlight","imports":[]}],"homepage":null,"github":"https://github.com/felixfbecker/cli-highlight","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/cli-highlight","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-highlight/compatibility"}}