{"library":"renderkid","title":"Stylish Console Output for Node.js","description":"RenderKid is a Node.js library that enables developers to style command-line interface (CLI) output using a subset of HTML and CSS. It allows for rich text formatting, layout control (margins, padding, width, height, display modes), and custom colors directly in the terminal. The current stable version is 3.0.0. While powerful for its time, the project appears to be in maintenance mode, with its last significant update indicated in January 2015 in the provided README. It differentiates itself by adopting a web-like styling paradigm, offering more expressive layout control than simpler chalk-like libraries, and abstracting away ANSI escape codes behind a familiar CSS-in-JS syntax for console elements.","language":"javascript","status":"maintenance","last_verified":"Sun Apr 19","install":{"commands":["npm install renderkid"],"cli":null},"imports":["import RenderKid from 'renderkid'","const RenderKid = require('renderkid')"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import RenderKid from 'renderkid';\n\nconst r = new RenderKid();\n\nr.style({\n  \"ul\": {\n    display: \"block\",\n    margin: \"2 0 2\"\n  },\n  \"li\": {\n    display: \"block\",\n    marginBottom: \"1\"\n  },\n  \"key\": {\n    color: \"grey\",\n    marginRight: \"1\"\n  },\n  \"value\": {\n    color: \"bright-white\"\n  }\n});\n\nconst output = r.render(`\n<ul>\n  <li>\n    <key>Name:</key>\n    <value>RenderKid</value>\n  </li>\n  <li>\n    <key>Version:</key>\n    <value>3.0.0</value>\n  </li>\n  <li>\n    <key>Last Update (docs):</key>\n    <value>Jan 2015</value>\n  </li>\n</ul>\n`);\n\nconsole.log(output);","lang":"typescript","description":"This example demonstrates how to initialize RenderKid, define styles using a CSS-like object for custom HTML tags, and then render a string containing these tags to produce styled console output.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}