Skip to content

Make the README debugging example runnable - #369

Open
Hugohong258 wants to merge 1 commit into
cli-table:masterfrom
Hugohong258:docs/runnable-debug-example
Open

Hugohong258 wants to merge 1 commit into
cli-table:masterfrom
Hugohong258:docs/runnable-debug-example

Conversation

@Hugohong258

Copy link
Copy Markdown

The debugging example stopped at a syntax error in table.push([{}, {},});. Use a row-spanning cell and a second row so that running the snippet both renders a table and shows the missing-cell warning. Include the import so the example runs in a fresh CommonJS process.

I packed the package from master, installed the tarball in an empty consumer directory, and ran the JavaScript extracted from the README with Node 24.15.0. The original block failed to parse. The updated block prints the table followed by Missing cell at 0-1..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant