{"_id":"table-header","_rev":"6-2ee7f4574f8bdfbb916e39681a565321","name":"table-header","description":"Add header to a text table","dist-tags":{"latest":"0.2.2"},"versions":{"0.1.0":{"name":"table-header","version":"0.1.0","description":"Add header to a text table","author":{"name":"Eugene Sharygin","email":"eush77@gmail.com"},"license":"MIT","scripts":{"test":"tape test/*.js"},"files":["index.js"],"homepage":"https://github.com/eush77/table-header","repository":{"type":"git","url":"git+https://github.com/eush77/table-header.git"},"bugs":{"url":"https://github.com/eush77/table-header/issues"},"keywords":["table","header","text-table","border"],"dependencies":{"repeat-string":"^1.5.2"},"devDependencies":{"tape":"^4.0.0"},"gitHead":"87dd7ae447ce0409ec7964c3c934d3423be98081","_id":"table-header@0.1.0","_shasum":"6a9abc14369badcc525269704ba680e76c09b010","_from":".","_npmVersion":"2.10.0","_nodeVersion":"1.6.2","_npmUser":{"name":"eush77","email":"eush77@gmail.com"},"maintainers":[{"name":"eush77","email":"eush77@gmail.com"}],"dist":{"shasum":"6a9abc14369badcc525269704ba680e76c09b010","tarball":"https://registry.npmjs.org/table-header/-/table-header-0.1.0.tgz","integrity":"sha512-6peESgH+LZF4LG5XwJJcVClDLOgITWQJUF4w7BZJw0SRpSSmZanm3I25C2nXwf/C5/tYAUcBfCYI0Vom1sccBw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBLsGJZPGa3QNh0We3I7j3U+tHZi0Q+O5FBHOU9o5S95AiA+3VemgOOZgNca+1kNyHRYzzrvsmorDnjCXfLspGEosQ=="}]}},"0.2.0":{"name":"table-header","version":"0.2.0","description":"Add header to a text table","author":{"name":"Eugene Sharygin","email":"eush77@gmail.com"},"license":"MIT","scripts":{"test":"tape test/*.js"},"files":["index.js"],"homepage":"https://github.com/eush77/table-header","repository":{"type":"git","url":"git+https://github.com/eush77/table-header.git"},"bugs":{"url":"https://github.com/eush77/table-header/issues"},"keywords":["table","header","text-table","border"],"dependencies":{"repeat-string":"^1.5.2"},"devDependencies":{"tape":"^4.0.0"},"gitHead":"7cc10bfba2bb6f78bce88931f9fac8c29283f394","_id":"table-header@0.2.0","_shasum":"3c328cb70f26c2341dca05744f6ac0b1cfa1b3b7","_from":".","_npmVersion":"2.10.0","_nodeVersion":"1.6.2","_npmUser":{"name":"eush77","email":"eush77@gmail.com"},"maintainers":[{"name":"eush77","email":"eush77@gmail.com"}],"dist":{"shasum":"3c328cb70f26c2341dca05744f6ac0b1cfa1b3b7","tarball":"https://registry.npmjs.org/table-header/-/table-header-0.2.0.tgz","integrity":"sha512-0wygsxU8qUdrlQR+RbfR+R0zSJyh/s2kz8NIF+tclc9mIzsshsGdO1k7us5p7qYWgnkI9WnjljYnNYJcn0AbLA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCXPUiiztM71evl+pvGsfnkLhYZlzbOLHHw6u8SNMm1hwIhAOkZ4Djj8CKZVFNRAO2hR1t/trUmeeN0zODNGd5kgOkc"}]}},"0.2.1":{"name":"table-header","version":"0.2.1","description":"Add header to a text table","author":{"name":"Eugene Sharygin","email":"eush77@gmail.com"},"license":"MIT","scripts":{"test":"tape test/*.js"},"files":["index.js"],"homepage":"https://github.com/eush77/table-header","repository":{"type":"git","url":"git+https://github.com/eush77/table-header.git"},"bugs":{"url":"https://github.com/eush77/table-header/issues"},"keywords":["table","header","text-table","border"],"dependencies":{"repeat-string":"^1.5.2"},"devDependencies":{"tape":"^4.0.0"},"gitHead":"b8896941e66aa93d8727acbc8686b4959d9c4cb0","_id":"table-header@0.2.1","_shasum":"2d3f13e624a0416ec5e589377f5d3c6cb68d39b8","_from":".","_npmVersion":"2.10.0","_nodeVersion":"1.6.2","_npmUser":{"name":"eush77","email":"eush77@gmail.com"},"maintainers":[{"name":"eush77","email":"eush77@gmail.com"}],"dist":{"shasum":"2d3f13e624a0416ec5e589377f5d3c6cb68d39b8","tarball":"https://registry.npmjs.org/table-header/-/table-header-0.2.1.tgz","integrity":"sha512-UyVnOYDTZHvFgsZF9ayY+IjrJWrOVaS4hDDXwOHdrqwOIqt9jJCsDvZn5CmezYMY8D/NOS8ntBZmonKlJpargQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAmNhEoPQr1XAjHLYGMWPmQGe29YT29ZBXVudXX/NtDVAiEAyTAEa4CKAGAjik/baD8MZkWmnAIHjkRZ/zfaRhYZqOM="}]}},"0.2.2":{"name":"table-header","version":"0.2.2","description":"Add header to a text table","author":{"name":"Eugene Sharygin","email":"eush77@gmail.com"},"license":"MIT","scripts":{"test":"tape test/*.js"},"files":["index.js"],"homepage":"https://github.com/eush77/table-header","repository":{"type":"git","url":"git+https://github.com/eush77/table-header.git"},"bugs":{"url":"https://github.com/eush77/table-header/issues"},"keywords":["table","header","text-table","border"],"dependencies":{"repeat-string":"^1.5.2"},"devDependencies":{"tape":"^4.0.0"},"gitHead":"630db1d80c910a27c163ef1abd8c4ac5bd49a3b7","_id":"table-header@0.2.2","_shasum":"7c9adb420ea569fb4717de5d8f5c4514804d2c0a","_from":".","_npmVersion":"2.10.0","_nodeVersion":"1.6.2","_npmUser":{"name":"eush77","email":"eush77@gmail.com"},"maintainers":[{"name":"eush77","email":"eush77@gmail.com"}],"dist":{"shasum":"7c9adb420ea569fb4717de5d8f5c4514804d2c0a","tarball":"https://registry.npmjs.org/table-header/-/table-header-0.2.2.tgz","integrity":"sha512-CD2ls9F2Y3f2dHcpJTg1OHUE/JqOIsjCbetroRT7W/vbRsjMnpmo6HR2Jz5EQgEgrjIfbV5pcQpZZFLIsWcDnw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCJCTimcX/m2gkVqTbk9mlfdOgDAhkqXo6maYhbO6QJ9wIgbirjKF6StWyOlLJ8UeXPTMd0yPgMxi+G9PB394wWxeM="}]}}},"readme":"[![npm](https://nodei.co/npm/table-header.png)](https://nodei.co/npm/table-header/)\n\n# table-header\n\n[![Build Status](https://travis-ci.org/eush77/table-header.svg?branch=master)](https://travis-ci.org/eush77/table-header) [![Dependency Status][david-badge]][david]\n\nAdd header to a text table, with border.\n\nText table is array of rows of equal length:\n\n```js\nvar table = [\n  ['red', '#ff0000'],\n  ['green', '#00ff00'],\n  ['blue', '#0000ff']\n];\n```\n\n[david]: https://david-dm.org/eush77/table-header\n[david-badge]: https://david-dm.org/eush77/table-header.png\n\n## Example\n\n```js\nvar tableHeader = require('table-header');\n\ntableHeader(table, ['color', 'code'])\n//=> [\n//     ['color', 'code'],\n//     ['-----', '-------'],\n//     ['red', '#ff0000'],\n//     ['green', '#00ff00'],\n//     ['blue', '#0000ff']\n//   ]\n```\n\n## API\n\n### `tableHeader(table, header, [opts])`\n\nReturns a new table with `header` and the same data.\n\nOptions:\n\n- `border` — `false` for no border, `true` (default) for `-`-delimited border, single-character string for custom-delimited border.\n\n- `stringLength` — string length function, e.g. to ignore escape codes.\n\n## `tableHeader.add(table, header, [opts])`\n\nAdd header to existing `table`, modifying it.\n\n## Related\n\n- [text-table] module turns these tables to strings.\n- [string-length] — string length function that ignores escape codes.\n\n[text-table]: http://npm.im/text-table\n[string-length]: http://npm.im/string-length\n\n## Install\n\n```\nnpm install table-header\n```\n\n## License\n\nMIT\n","maintainers":[{"name":"eush77","email":"eush77@gmail.com"}],"time":{"modified":"2022-06-27T03:28:18.455Z","created":"2015-05-30T00:27:38.179Z","0.1.0":"2015-05-30T00:27:38.179Z","0.2.0":"2015-05-30T01:04:15.993Z","0.2.1":"2015-05-30T12:00:50.354Z","0.2.2":"2015-06-05T23:11:10.419Z"},"homepage":"https://github.com/eush77/table-header","keywords":["table","header","text-table","border"],"repository":{"type":"git","url":"git+https://github.com/eush77/table-header.git"},"author":{"name":"Eugene Sharygin","email":"eush77@gmail.com"},"bugs":{"url":"https://github.com/eush77/table-header/issues"},"license":"MIT","readmeFilename":"README.md"}