{"library":"cardinal","type":"library","category":null,"description":"Cardinal is a JavaScript library and command-line tool (cdl) designed to syntax highlight JavaScript and JSON code with ANSI colors for terminal output. It offers features such as customizable color themes, optional line number printing, and support for UNIX pipes. The current stable version is 2.1.1, with its last known publication approximately eight years ago, indicating that the package is no longer actively maintained with regular updates or new features. This makes it suitable for projects requiring a stable, lightweight terminal highlighter with specific historical syntax support, but users should be aware of the lack of ongoing development. Its key differentiators include a strong focus on terminal-specific ANSI coloring and dual API/CLI functionality for direct code strings or files.","language":"javascript","status":"abandoned","version":"2.1.1","tags":["javascript","syntax","highlight","theme","json","terminal","console","print"],"last_verified":"Wed May 27","install":[{"cmd":"npm install cardinal","imports":["const cardinal = require('cardinal');\nconst highlightedCode = cardinal.highlight(codeString);","const cardinal = require('cardinal');\nconst highlightedFile = cardinal.highlightFileSync('./myFile.js');","const cardinal = require('cardinal');\ncardinal.highlightFile('./myFile.js', (err, highlighted) => {\n  if (err) console.error(err);\n  else console.log(highlighted);\n});"]},{"cmd":"yarn add cardinal","imports":[]},{"cmd":"pnpm add cardinal","imports":[]}],"homepage":null,"github":"https://github.com/thlorenz/cardinal","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/cardinal","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/cardinal/compatibility"}}