{"_id":"table-master","_rev":"8-415b3c98dfa29740fe7c1b581c761a88","name":"table-master","description":"Brings console.table features to node.js","dist-tags":{"latest":"1.0.3"},"versions":{"1.0.0":{"name":"table-master","version":"1.0.0","description":"Brings console.table features to node.js","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/deepsource/table-master.git"},"keywords":["console.table","table","color","tab","colour","color","table","chalk","pre","processors","alignment","align"],"author":{"name":"Sebastian Ullrich","email":"sebastian.ullrich@deepsource.de","url":"http://deepsource.de"},"license":"MIT","bugs":{"url":"https://github.com/deepsource/table-master/issues"},"homepage":"https://github.com/deepsource/table-master#readme","gitHead":"dbacf304e5c2d88d9cd147e95149d6e2d828df1f","_id":"table-master@1.0.0","_shasum":"7e79710a9cfe53ffca6fd4152e63d19b07d01b23","_from":".","_npmVersion":"2.9.1","_nodeVersion":"0.12.3","_npmUser":{"name":"sullrich84","email":"social@deepsource.de"},"dist":{"shasum":"7e79710a9cfe53ffca6fd4152e63d19b07d01b23","tarball":"https://registry.npmjs.org/table-master/-/table-master-1.0.0.tgz","integrity":"sha512-/RB7mf+KjhJw/mbTRvKAoe7qL1qj8F/bgrN8//GwpqPL5GHdWuisTOCwRIO8GkWCh9fj0QyyeLJBR3JXjgErrQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIG3JbTm4MrislrxWCt3t9QBY/dhNCqKd94TNRiXUUv07AiEA8l15IQzJEujQ4X2A1E4E8pQnMAAmSU1ozxydtN0MSdM="}]},"maintainers":[{"name":"sullrich84","email":"social@deepsource.de"}]},"1.0.1":{"name":"table-master","version":"1.0.1","description":"Brings console.table features to node.js","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/deepsource/table-master.git"},"keywords":["console.table","table","color","tab","colour","color","table","chalk","pre","processors","alignment","align"],"author":{"name":"Sebastian Ullrich","email":"sebastian.ullrich@deepsource.de","url":"http://deepsource.de"},"license":"MIT","bugs":{"url":"https://github.com/deepsource/table-master/issues"},"homepage":"https://github.com/deepsource/table-master#readme","gitHead":"af8b094c5d04cc9d33e92de33f5b8db5ff7fadf6","_id":"table-master@1.0.1","_shasum":"d1fa564802928d09ca1e546c58ab285299fcae69","_from":".","_npmVersion":"2.9.1","_nodeVersion":"0.12.3","_npmUser":{"name":"sullrich84","email":"social@deepsource.de"},"dist":{"shasum":"d1fa564802928d09ca1e546c58ab285299fcae69","tarball":"https://registry.npmjs.org/table-master/-/table-master-1.0.1.tgz","integrity":"sha512-EVGzA4pIa9ruta0a8KOp+cKh8vE2Xjucnve6G6YBzyM4v/3z5KfXkqwNvKbWGXBuT6BU10yllT0XQnRUVjcaIg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDfcE3NZCWcLXxfLL+Ujn69bH7rGeTyiuvnq6twi9eHmAiEA8F9vcovE9RhWXJyuhbS+Jm2SVh+CZdhmvJWCcQERRfg="}]},"maintainers":[{"name":"sullrich84","email":"social@deepsource.de"}]},"1.0.2":{"name":"table-master","version":"1.0.2","description":"Brings console.table features to node.js","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/deepsource/table-master.git"},"keywords":["console.table","table","color","tab","colour","color","table","chalk","pre","processors","alignment","align"],"author":{"name":"Sebastian Ullrich","email":"sebastian.ullrich@deepsource.de","url":"http://deepsource.de"},"license":"MIT","bugs":{"url":"https://github.com/deepsource/table-master/issues"},"homepage":"https://github.com/deepsource/table-master#readme","dependencies":{"lodash":"^3.10.1"},"gitHead":"6ebbcb3330d10b65230199d96820ed86cd1c4be5","_id":"table-master@1.0.2","_shasum":"0ba3bfffbf194167d471da2950c0d025762d9449","_from":".","_npmVersion":"2.9.1","_nodeVersion":"0.12.3","_npmUser":{"name":"sullrich84","email":"social@deepsource.de"},"dist":{"shasum":"0ba3bfffbf194167d471da2950c0d025762d9449","tarball":"https://registry.npmjs.org/table-master/-/table-master-1.0.2.tgz","integrity":"sha512-NhxjJt7uacF3hLPgOC1k8hYx5CBwlKepWb0O4rQ1K6N43uvT59/0bDTly/rWNfvEkDOKIzd7wNZiqwo6ro9xcg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAeYCL/t7MMHRTlUmgEgXcvKCkGqFrEwE7756W2InpnlAiB7jL/zN2os2aezuV0vJqtKmH8irbuLFedpxYO1pVJSgA=="}]},"maintainers":[{"name":"sullrich84","email":"social@deepsource.de"}]},"1.0.3":{"name":"table-master","version":"1.0.3","description":"Brings console.table features to node.js","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/deepsource/table-master.git"},"keywords":["console.table","table","color","tab","colour","color","table","chalk","pre","processors","alignment","align"],"author":{"name":"Sebastian Ullrich","email":"sebastian.ullrich@deepsource.de","url":"http://deepsource.de"},"license":"MIT","bugs":{"url":"https://github.com/deepsource/table-master/issues"},"homepage":"https://github.com/deepsource/table-master#readme","dependencies":{"chalk":"^1.1.1","lodash":"^3.10.1"},"gitHead":"9eb2616f6dca1ccd41871e6be2cd6381c444def4","_id":"table-master@1.0.3","_shasum":"77eeab5e621230f127d78968839c804f23d57a8d","_from":".","_npmVersion":"2.9.1","_nodeVersion":"0.12.3","_npmUser":{"name":"sullrich84","email":"social@deepsource.de"},"dist":{"shasum":"77eeab5e621230f127d78968839c804f23d57a8d","tarball":"https://registry.npmjs.org/table-master/-/table-master-1.0.3.tgz","integrity":"sha512-5z78r4yTwUHClWIdXLLWkSWFuGJBuoANmrgWzwEoRQo7RYR2SxmTA1Eh++n0cWQNaSjyQQCY0Shv+WR7YSurCA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDrzxxBW/U7Z06TB7+/hL3GR6K3YuqwbcOvLUY6GH20/wIhAPaO7K/bdF2qQHr0/YoV7Q71Isu8EDxYHUXrcLWaTvd2"}]},"maintainers":[{"name":"sullrich84","email":"social@deepsource.de"}]}},"readme":"# table-master\n\n[![deepsource crafted](http://cdn.deepsource.de/svg/deepsource-crafted.svg)](http://deepsource.de)\n\nBrings extended log.table functionality to command line interfaces. This module supports *alignment*, *colours*, \nand *pre processors*.\n\n## The basic console.table \n\nAfter requiring the module, the extended `console.table` functionality will be available. `console.table` will \naccept the following paramters: `console.table(array, alignment, preProcessors)`:\n\n - `array`, the array containing the JSON objects to be printed out\n - `alignment`, the string, indication the alignment of each row\n - `preProcessors`, an array of pre processor functions\n\n```javascript\nvar tab = require('table-master');\n\nvar employees = [\n    { \"first name\": \"John\", \"last name\": \"Doe\", \"id\": \"2843650281034552\", value: true },\n    { \"first name\": \"Anna\", \"last name\": \"Smith\", \"id\": \"0948736125247932\", value: true },\n    { \"first name\": \"Peter\", \"last name\": \"Jones\", \"id\": \"7524535987721431\", value: true }\n];\n\nconsole.table(employees);\n```\n\n![Example 1](https://raw.githubusercontent.com/deepsource/table-master/master/samples/ex1.png)\n\n## Colour support\n\ntable-master supports colour modules like `chalk`.\n\n```javascript\nvar tab = require('table-master');\n\nvar employees = [\n    { \"first name\": chalk.red(\"John\"), \"last name\": \"Doe\", \"id\": \"2843650281034552\", value: true },\n    { \"first name\": \"Anna\", \"last name\": \"Smith\", \"id\": \"0948736125247932\", value: true },\n    { \"first name\": \"Peter\", \"last name\": \"Jones\", \"id\": \"7524535987721431\", value: true }\n];\n\nconsole.table(employees);\n```\n\n![Example 2](https://raw.githubusercontent.com/deepsource/table-master/master/samples/ex2.png)\n\n## Alignment\n\nYou can align the values of the table. Available options are *(r)ight*, *(l)eft* or *(c)enter*.\n\n```javascript\nvar tab = require('table-master');\n\nvar employees = [\n    { \"first name\": chalk.red(\"John\"), \"last name\": \"Doe\", \"id\": \"2843650281034552\", value: true },\n    { \"first name\": \"Anna\", \"last name\": \"Smith\", \"id\": \"0948736125247932\", value: true },\n    { \"first name\": \"Peter\", \"last name\": \"Jones\", \"id\": \"7524535987721431\", value: true }\n];\n\nconsole.table(employees, \"lclr\"); // Yes, I'm a LaTeX guy :)\n```\n\n![Example 3](https://raw.githubusercontent.com/deepsource/table-master/master/samples/ex3.png)\n\n## Pre processors\n\nYou can use powerful pre processors to modify the result/look of your table output.\n\n```javascript\nvar tab   = require('table-master');\nvar chalk = require('chalk');\n\nvar employees = [\n    { \"first name\": \"John\", \"last name\": \"Doe\", active: true },\n    { \"first name\": \"Anna\", \"last name\": \"Smith\", active: false },\n    { \"first name\": \"Peter\", \"last name\": \"Jones\", active: true }\n];\n\nconsole.table(employees, \"llr\", [\n    chalk.gray, // make first names gray\n    chalk.bold, // make last names bold\n    function (value) { \n        // Print Yes/No if employee is active\n        return value ? \"Yes\" : \"No\"\n    }\n]);\n```\n\n![Example 4](https://raw.githubusercontent.com/deepsource/table-master/master/samples/ex4.png)\n\n## Default settings \n\nYou can modify the spacing of the output by overriding the default settings:\n\n - `indent`, indentation at the begin of each line\n - `rowSpace`, spacing between the columns\n \n ```javascript\n var tab   = require('table-master');\n \n tab.setDefaults({\n    indent  : 3, // indentation at the begin of each line\n    rowSpace: 1  // spacing between the columns\n }); \n ```\n","maintainers":[{"name":"sullrich84","email":"social@deepsource.de"}],"time":{"modified":"2022-06-27T03:28:24.699Z","created":"2015-11-01T20:45:32.587Z","1.0.0":"2015-11-01T20:45:32.587Z","1.0.1":"2015-11-01T20:49:31.935Z","1.0.2":"2015-11-04T21:58:55.195Z","1.0.3":"2015-11-06T18:35:36.163Z"},"homepage":"https://github.com/deepsource/table-master#readme","keywords":["console.table","table","color","tab","colour","color","table","chalk","pre","processors","alignment","align"],"repository":{"type":"git","url":"git+https://github.com/deepsource/table-master.git"},"author":{"name":"Sebastian Ullrich","email":"sebastian.ullrich@deepsource.de","url":"http://deepsource.de"},"bugs":{"url":"https://github.com/deepsource/table-master/issues"},"license":"MIT","readmeFilename":"README.md","users":{}}