cli-table3 is an active utility library for Node.js environments, providing a robust mechanism to render highly customizable unicode-aided tables directly in the command line. As of version 0.6.5, it offers features such as cell spanning (both column and row), individual cell styling (borders, padding), flexible text alignment, word wrapping with configurable boundaries, and enhanced handling of ANSI color characters within cell content. It is the maintained successor and API-compatible evolution of the unmaintained `cli-table` and `cli-table2` packages. Releases are consistent, addressing bug fixes and introducing enhancements like hyperlink support, `bigint` cell content, and improved TypeScript types. It ships with comprehensive TypeScript type definitions, making it suitable for modern JavaScript and TypeScript projects.
npm install cli-table3Verified import paths — ran on the pinned version, not inferred.
Demonstrates creating a horizontal table with headers, custom column widths, and cell styling, including a column span. It also shows a basic vertical table setup.
Ensure your Node.js environment is version 10.* or >= 12.*. Update your `engines` field in `package.json` accordingly if deploying.
Always use `npm install cli-table3` or `yarn add cli-table3`. Avoid the older, unmaintained packages to prevent security vulnerabilities and unpatched bugs.
Review the changelog for v0.4.0 and higher when migrating from `cli-table2`. Test your application thoroughly after upgrading.
Use the correct default import syntax: `import Table from 'cli-table3';`.
Upgrade your Node.js runtime to version 10.* or >= 12.*. You can use tools like `nvm` (Node Version Manager) to manage multiple Node.js versions.
Ensure you are using `cli-table3` version 0.6.2 or higher, as `href` support was added in this version. Update your package and regenerate `node_modules/@types` if necessary.
No dependency data recorded yet.