
Security News
Deno 2.4 Brings Back deno bundle, Improves Dependency Management and Observability
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.
table-header
Advanced tools
Add header to a text table, with border.
Text table is array of rows of equal length:
var table = [
['red', '#ff0000'],
['green', '#00ff00'],
['blue', '#0000ff']
];
var tableHeader = require('table-header');
tableHeader(table, ['color', 'code'])
//=> [
// ['color', 'code'],
// ['-----', '-------'],
// ['red', '#ff0000'],
// ['green', '#00ff00'],
// ['blue', '#0000ff']
// ]
tableHeader(table, header, [opts])
Returns a new table with header
and the same data.
Options:
border
— false
for no border, true
(default) for -
-delimited border, single-character string for custom-delimited border.
stringLength
— string length function, e.g. to ignore escape codes.
tableHeader.add(table, header, [opts])
Add header to existing table
, modifying it.
npm install table-header
MIT
FAQs
Add header to a text table
The npm package table-header receives a total of 2,191 weekly downloads. As such, table-header popularity was classified as popular.
We found that table-header demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.
Security News
CVEForecast.org uses machine learning to project a record-breaking surge in vulnerability disclosures in 2025.
Security News
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.