| 1 |
{ |
| 2 |
"_id": "text-table", |
| 3 |
"_rev": "34-b46f628610407394c4d16cd18d1df1dc", |
| 4 |
"name": "text-table", |
| 5 |
"description": "borderless text tables with alignment", |
| 6 |
"dist-tags": { |
| 7 |
"latest": "0.2.0" |
| 8 |
}, |
| 9 |
"versions": { |
| 10 |
"0.0.0": { |
| 11 |
"name": "text-table", |
| 12 |
"version": "0.0.0", |
| 13 |
"description": "borderless text tables suitable for printing to stdout", |
| 14 |
"main": "index.js", |
| 15 |
"devDependencies": { |
| 16 |
"tap": "~0.4.0", |
| 17 |
"tape": "~1.0.2" |
| 18 |
}, |
| 19 |
"scripts": { |
| 20 |
"test": "tap test/*.js" |
| 21 |
}, |
| 22 |
"repository": { |
| 23 |
"type": "git", |
| 24 |
"url": "git://github.com/substack/text-table.git" |
| 25 |
}, |
| 26 |
"homepage": "https://github.com/substack/text-table", |
| 27 |
"keywords": [ |
| 28 |
"text", |
| 29 |
"table", |
| 30 |
"ascii", |
| 31 |
"rows", |
| 32 |
"tabular" |
| 33 |
], |
| 34 |
"author": { |
| 35 |
"name": "James Halliday", |
| 36 |
"email": "[email protected]", |
| 37 |
"url": "http://substack.net" |
| 38 |
}, |
| 39 |
"license": "MIT", |
| 40 |
"readme": "# text-table\n\ngenerate borderless text table strings suitable for printing to stdout\n\n[](http://travis-ci.org/substack/text-table)\n\n# example\n\n## default align\n\n``` js\nvar table = require('text-table');\nvar t = table([\n [ 'master', '0123456789abcdef' ],\n [ 'staging', 'fedcba9876543210' ]\n]);\nconsole.log(t);\n```\n\n```\nmaster 0123456789abcdef\nstaging fedcba9876543210\n```\n\n## left-right align\n\n``` js\nvar table = require('text-table');\nvar t = table([\n [ 'beep', '1024' ],\n [ 'boop', '33450' ],\n [ 'foo', '1006' ],\n [ 'bar', '45' ]\n], { align: [ 'l', 'r' ] });\nconsole.log(t);\n```\n\n```\nbeep 1024\nboop 33450\nfoo 1006\nbar 45\n```\n\n## dotted align\n\n``` js\nvar table = require('text-table');\nvar t = table([\n [ 'beep', '1024' ],\n [ 'boop', '334.212' ],\n [ 'foo', '1006' ],\n [ 'bar', '45.6' ],\n [ 'baz', '123.' ]\n], { align: [ 'l', '.' ] });\nconsole.log(t);\n```\n\n```\nbeep 1024\nboop 334.212\nfoo 1006\nbar 45.6\nbaz 123.\n```\n\n## centered\n\n``` js\nvar table = require('text-table');\nvar t = table([\n [ 'beep', '1024', 'xyz' ],\n [ 'boop', '3388450', 'tuv' ],\n [ 'foo', '10106', 'qrstuv' ],\n [ 'bar', '45', 'lmno' ]\n], { align: [ 'l', 'c', 'l' ] });\nconsole.log(t);\n```\n\n```\nbeep 1024 xyz\nboop 3388450 tuv\nfoo 10106 qrstuv\nbar 45 lmno\n```\n\n# methods\n\n``` js\nvar table = require('text-table')\n```\n\n## var s = table(rows, opts={})\n\nReturn a formatted table string `s` from an array of `rows` and some options\n`opts`.\n\n`rows` should be an array of arrays containing strings, numbers, or other\nprintable values.\n\noptions can be:\n\n* `opts.hsep` - separator to use between columns, default `' '`\n* `opts.align` - array of alignment types for each column, default `['l','l',...]`\n\nalignment types are:\n\n* `'l'` - left\n* `'r'` - right\n* `'c'` - center\n* `'.'` - decimal\n\n# install\n\nWith [npm](https://npmjs.org) do:\n\n```\nnpm install text-table\n```\n\n# license\n\nMIT\n", |
| 41 |
"readmeFilename": "readme.markdown", |
| 42 |
"_id": "[email protected]", |
| 43 |
"dist": { |
| 44 |
"shasum": "6eaebb4b8775fa12f3ebaa7aae489f3b89a0d7a0", |
| 45 |
"tarball": "https://registry.npmjs.org/text-table/-/text-table-0.0.0.tgz" |
| 46 |
}, |
| 47 |
"_from": ".", |
| 48 |
"_npmVersion": "1.2.2", |
| 49 |
"_npmUser": { |
| 50 |
"name": "substack", |
| 51 |
"email": "[email protected]" |
| 52 |
}, |
| 53 |
"maintainers": [ |
| 54 |
{ |
| 55 |
"name": "substack", |
| 56 |
"email": "[email protected]" |
| 57 |
} |
| 58 |
], |
| 59 |
"directories": {} |
| 60 |
}, |
| 61 |
"0.0.1": { |
| 62 |
"name": "text-table", |
| 63 |
"version": "0.0.1", |
| 64 |
"description": "borderless text tables suitable for printing to stdout", |
| 65 |
"main": "index.js", |
| 66 |
"devDependencies": { |
| 67 |
"tap": "~0.4.0", |
| 68 |
"tape": "~1.0.2" |
| 69 |
}, |
| 70 |
"scripts": { |
| 71 |
"test": "tap test/*.js" |
| 72 |
}, |
| 73 |
"repository": { |
| 74 |
"type": "git", |
| 75 |
"url": "git://github.com/substack/text-table.git" |
| 76 |
}, |
| 77 |
"homepage": "https://github.com/substack/text-table", |
| 78 |
"keywords": [ |
| 79 |
"text", |
| 80 |
"table", |
| 81 |
"ascii", |
| 82 |
"rows", |
| 83 |
"tabular" |
| 84 |
], |
| 85 |
"author": { |
| 86 |
"name": "James Halliday", |
| 87 |
"email": "[email protected]", |
| 88 |
"url": "http://substack.net" |
| 89 |
}, |
| 90 |
"license": "MIT", |
| 91 |
"readme": "# text-table\n\ngenerate borderless text table strings suitable for printing to stdout\n\n[](http://travis-ci.org/substack/text-table)\n\n# example\n\n## default align\n\n``` js\nvar table = require('text-table');\nvar t = table([\n [ 'master', '0123456789abcdef' ],\n [ 'staging', 'fedcba9876543210' ]\n]);\nconsole.log(t);\n```\n\n```\nmaster 0123456789abcdef\nstaging fedcba9876543210\n```\n\n## left-right align\n\n``` js\nvar table = require('text-table');\nvar t = table([\n [ 'beep', '1024' ],\n [ 'boop', '33450' ],\n [ 'foo', '1006' ],\n [ 'bar', '45' ]\n], { align: [ 'l', 'r' ] });\nconsole.log(t);\n```\n\n```\nbeep 1024\nboop 33450\nfoo 1006\nbar 45\n```\n\n## dotted align\n\n``` js\nvar table = require('text-table');\nvar t = table([\n [ 'beep', '1024' ],\n [ 'boop', '334.212' ],\n [ 'foo', '1006' ],\n [ 'bar', '45.6' ],\n [ 'baz', '123.' ]\n], { align: [ 'l', '.' ] });\nconsole.log(t);\n```\n\n```\nbeep 1024\nboop 334.212\nfoo 1006\nbar 45.6\nbaz 123.\n```\n\n## centered\n\n``` js\nvar table = require('text-table');\nvar t = table([\n [ 'beep', '1024', 'xyz' ],\n [ 'boop', '3388450', 'tuv' ],\n [ 'foo', '10106', 'qrstuv' ],\n [ 'bar', '45', 'lmno' ]\n], { align: [ 'l', 'c', 'l' ] });\nconsole.log(t);\n```\n\n```\nbeep 1024 xyz\nboop 3388450 tuv\nfoo 10106 qrstuv\nbar 45 lmno\n```\n\n# methods\n\n``` js\nvar table = require('text-table')\n```\n\n## var s = table(rows, opts={})\n\nReturn a formatted table string `s` from an array of `rows` and some options\n`opts`.\n\n`rows` should be an array of arrays containing strings, numbers, or other\nprintable values.\n\noptions can be:\n\n* `opts.hsep` - separator to use between columns, default `' '`\n* `opts.align` - array of alignment types for each column, default `['l','l',...]`\n\nalignment types are:\n\n* `'l'` - left\n* `'r'` - right\n* `'c'` - center\n* `'.'` - decimal\n\n# install\n\nWith [npm](https://npmjs.org) do:\n\n```\nnpm install text-table\n```\n\n# license\n\nMIT\n", |
| 92 |
"readmeFilename": "readme.markdown", |
| 93 |
"_id": "[email protected]", |
| 94 |
"dist": { |
| 95 |
"shasum": "b3d496dffb0a38d3bce6205cd013583843ee2f91", |
| 96 |
"tarball": "https://registry.npmjs.org/text-table/-/text-table-0.0.1.tgz" |
| 97 |
}, |
| 98 |
"_from": ".", |
| 99 |
"_npmVersion": "1.2.2", |
| 100 |
"_npmUser": { |
| 101 |
"name": "substack", |
| 102 |
"email": "[email protected]" |
| 103 |
}, |
| 104 |
"maintainers": [ |
| 105 |
{ |
| 106 |
"name": "substack", |
| 107 |
"email": "[email protected]" |
| 108 |
} |
| 109 |
], |
| 110 |
"directories": {} |
| 111 |
}, |
| 112 |
"0.1.0": { |
| 113 |
"name": "text-table", |
| 114 |
"version": "0.1.0", |
| 115 |
"description": "borderless text tables with alignment", |
| 116 |
"main": "index.js", |
| 117 |
"devDependencies": { |
| 118 |
"tap": "~0.4.0", |
| 119 |
"tape": "~1.0.2" |
| 120 |
}, |
| 121 |
"scripts": { |
| 122 |
"test": "tap test/*.js" |
| 123 |
}, |
| 124 |
"repository": { |
| 125 |
"type": "git", |
| 126 |
"url": "git://github.com/substack/text-table.git" |
| 127 |
}, |
| 128 |
"homepage": "https://github.com/substack/text-table", |
| 129 |
"keywords": [ |
| 130 |
"text", |
| 131 |
"table", |
| 132 |
"align", |
| 133 |
"ascii", |
| 134 |
"rows", |
| 135 |
"tabular" |
| 136 |
], |
| 137 |
"author": { |
| 138 |
"name": "James Halliday", |
| 139 |
"email": "[email protected]", |
| 140 |
"url": "http://substack.net" |
| 141 |
}, |
| 142 |
"license": "MIT", |
| 143 |
"readme": "# text-table\n\ngenerate borderless text table strings suitable for printing to stdout\n\n[](http://travis-ci.org/substack/text-table)\n\n# example\n\n## default align\n\n``` js\nvar table = require('text-table');\nvar t = table([\n [ 'master', '0123456789abcdef' ],\n [ 'staging', 'fedcba9876543210' ]\n]);\nconsole.log(t);\n```\n\n```\nmaster 0123456789abcdef\nstaging fedcba9876543210\n```\n\n## left-right align\n\n``` js\nvar table = require('text-table');\nvar t = table([\n [ 'beep', '1024' ],\n [ 'boop', '33450' ],\n [ 'foo', '1006' ],\n [ 'bar', '45' ]\n], { align: [ 'l', 'r' ] });\nconsole.log(t);\n```\n\n```\nbeep 1024\nboop 33450\nfoo 1006\nbar 45\n```\n\n## dotted align\n\n``` js\nvar table = require('text-table');\nvar t = table([\n [ 'beep', '1024' ],\n [ 'boop', '334.212' ],\n [ 'foo', '1006' ],\n [ 'bar', '45.6' ],\n [ 'baz', '123.' ]\n], { align: [ 'l', '.' ] });\nconsole.log(t);\n```\n\n```\nbeep 1024\nboop 334.212\nfoo 1006\nbar 45.6\nbaz 123.\n```\n\n## centered\n\n``` js\nvar table = require('text-table');\nvar t = table([\n [ 'beep', '1024', 'xyz' ],\n [ 'boop', '3388450', 'tuv' ],\n [ 'foo', '10106', 'qrstuv' ],\n [ 'bar', '45', 'lmno' ]\n], { align: [ 'l', 'c', 'l' ] });\nconsole.log(t);\n```\n\n```\nbeep 1024 xyz\nboop 3388450 tuv\nfoo 10106 qrstuv\nbar 45 lmno\n```\n\n# methods\n\n``` js\nvar table = require('text-table')\n```\n\n## var s = table(rows, opts={})\n\nReturn a formatted table string `s` from an array of `rows` and some options\n`opts`.\n\n`rows` should be an array of arrays containing strings, numbers, or other\nprintable values.\n\noptions can be:\n\n* `opts.hsep` - separator to use between columns, default `' '`\n* `opts.align` - array of alignment types for each column, default `['l','l',...]`\n\nalignment types are:\n\n* `'l'` - left\n* `'r'` - right\n* `'c'` - center\n* `'.'` - decimal\n\n# install\n\nWith [npm](https://npmjs.org) do:\n\n```\nnpm install text-table\n```\n\n# license\n\nMIT\n", |
| 144 |
"readmeFilename": "readme.markdown", |
| 145 |
"_id": "[email protected]", |
| 146 |
"dist": { |
| 147 |
"shasum": "e25db4e644221cd509a59ddfc902595fcf1ac846", |
| 148 |
"tarball": "https://registry.npmjs.org/text-table/-/text-table-0.1.0.tgz" |
| 149 |
}, |
| 150 |
"_from": ".", |
| 151 |
"_npmVersion": "1.2.2", |
| 152 |
"_npmUser": { |
| 153 |
"name": "substack", |
| 154 |
"email": "[email protected]" |
| 155 |
}, |
| 156 |
"maintainers": [ |
| 157 |
{ |
| 158 |
"name": "substack", |
| 159 |
"email": "[email protected]" |
| 160 |
} |
| 161 |
], |
| 162 |
"directories": {} |
| 163 |
}, |
| 164 |
"0.1.1": { |
| 165 |
"name": "text-table", |
| 166 |
"version": "0.1.1", |
| 167 |
"description": "borderless text tables with alignment", |
| 168 |
"main": "index.js", |
| 169 |
"devDependencies": { |
| 170 |
"tap": "~0.4.0", |
| 171 |
"tape": "~1.0.2" |
| 172 |
}, |
| 173 |
"scripts": { |
| 174 |
"test": "tap test/*.js" |
| 175 |
}, |
| 176 |
"testling": { |
| 177 |
"files": "test/*.js", |
| 178 |
"browsers": [ |
| 179 |
"ie/6..latest", |
| 180 |
"chrome/20..latest", |
| 181 |
"firefox/10..latest", |
| 182 |
"safari/latest", |
| 183 |
"opera/11.0..latest", |
| 184 |
"iphone/6", |
| 185 |
"ipad/6" |
| 186 |
] |
| 187 |
}, |
| 188 |
"repository": { |
| 189 |
"type": "git", |
| 190 |
"url": "git://github.com/substack/text-table.git" |
| 191 |
}, |
| 192 |
"homepage": "https://github.com/substack/text-table", |
| 193 |
"keywords": [ |
| 194 |
"text", |
| 195 |
"table", |
| 196 |
"align", |
| 197 |
"ascii", |
| 198 |
"rows", |
| 199 |
"tabular" |
| 200 |
], |
| 201 |
"author": { |
| 202 |
"name": "James Halliday", |
| 203 |
"email": "[email protected]", |
| 204 |
"url": "http://substack.net" |
| 205 |
}, |
| 206 |
"license": "MIT", |
| 207 |
"readme": "# text-table\n\ngenerate borderless text table strings suitable for printing to stdout\n\n[](http://travis-ci.org/substack/text-table)\n\n[](http://ci.testling.com/substack/text-table)\n\n# example\n\n## default align\n\n``` js\nvar table = require('text-table');\nvar t = table([\n [ 'master', '0123456789abcdef' ],\n [ 'staging', 'fedcba9876543210' ]\n]);\nconsole.log(t);\n```\n\n```\nmaster 0123456789abcdef\nstaging fedcba9876543210\n```\n\n## left-right align\n\n``` js\nvar table = require('text-table');\nvar t = table([\n [ 'beep', '1024' ],\n [ 'boop', '33450' ],\n [ 'foo', '1006' ],\n [ 'bar', '45' ]\n], { align: [ 'l', 'r' ] });\nconsole.log(t);\n```\n\n```\nbeep 1024\nboop 33450\nfoo 1006\nbar 45\n```\n\n## dotted align\n\n``` js\nvar table = require('text-table');\nvar t = table([\n [ 'beep', '1024' ],\n [ 'boop', '334.212' ],\n [ 'foo', '1006' ],\n [ 'bar', '45.6' ],\n [ 'baz', '123.' ]\n], { align: [ 'l', '.' ] });\nconsole.log(t);\n```\n\n```\nbeep 1024\nboop 334.212\nfoo 1006\nbar 45.6\nbaz 123.\n```\n\n## centered\n\n``` js\nvar table = require('text-table');\nvar t = table([\n [ 'beep', '1024', 'xyz' ],\n [ 'boop', '3388450', 'tuv' ],\n [ 'foo', '10106', 'qrstuv' ],\n [ 'bar', '45', 'lmno' ]\n], { align: [ 'l', 'c', 'l' ] });\nconsole.log(t);\n```\n\n```\nbeep 1024 xyz\nboop 3388450 tuv\nfoo 10106 qrstuv\nbar 45 lmno\n```\n\n# methods\n\n``` js\nvar table = require('text-table')\n```\n\n## var s = table(rows, opts={})\n\nReturn a formatted table string `s` from an array of `rows` and some options\n`opts`.\n\n`rows` should be an array of arrays containing strings, numbers, or other\nprintable values.\n\noptions can be:\n\n* `opts.hsep` - separator to use between columns, default `' '`\n* `opts.align` - array of alignment types for each column, default `['l','l',...]`\n\nalignment types are:\n\n* `'l'` - left\n* `'r'` - right\n* `'c'` - center\n* `'.'` - decimal\n\n# install\n\nWith [npm](https://npmjs.org) do:\n\n```\nnpm install text-table\n```\n\n# license\n\nMIT\n", |
| 208 |
"readmeFilename": "readme.markdown", |
| 209 |
"_id": "[email protected]", |
| 210 |
"dist": { |
| 211 |
"shasum": "9aa4347a39b6950cd24190264576f62db6e52d93", |
| 212 |
"tarball": "https://registry.npmjs.org/text-table/-/text-table-0.1.1.tgz" |
| 213 |
}, |
| 214 |
"_from": ".", |
| 215 |
"_npmVersion": "1.2.2", |
| 216 |
"_npmUser": { |
| 217 |
"name": "substack", |
| 218 |
"email": "[email protected]" |
| 219 |
}, |
| 220 |
"maintainers": [ |
| 221 |
{ |
| 222 |
"name": "substack", |
| 223 |
"email": "[email protected]" |
| 224 |
} |
| 225 |
], |
| 226 |
"directories": {} |
| 227 |
}, |
| 228 |
"0.2.0": { |
| 229 |
"name": "text-table", |
| 230 |
"version": "0.2.0", |
| 231 |
"description": "borderless text tables with alignment", |
| 232 |
"main": "index.js", |
| 233 |
"devDependencies": { |
| 234 |
"tap": "~0.4.0", |
| 235 |
"tape": "~1.0.2", |
| 236 |
"cli-color": "~0.2.3" |
| 237 |
}, |
| 238 |
"scripts": { |
| 239 |
"test": "tap test/*.js" |
| 240 |
}, |
| 241 |
"testling": { |
| 242 |
"files": "test/*.js", |
| 243 |
"browsers": [ |
| 244 |
"ie/6..latest", |
| 245 |
"chrome/20..latest", |
| 246 |
"firefox/10..latest", |
| 247 |
"safari/latest", |
| 248 |
"opera/11.0..latest", |
| 249 |
"iphone/6", |
| 250 |
"ipad/6" |
| 251 |
] |
| 252 |
}, |
| 253 |
"repository": { |
| 254 |
"type": "git", |
| 255 |
"url": "git://github.com/substack/text-table.git" |
| 256 |
}, |
| 257 |
"homepage": "https://github.com/substack/text-table", |
| 258 |
"keywords": [ |
| 259 |
"text", |
| 260 |
"table", |
| 261 |
"align", |
| 262 |
"ascii", |
| 263 |
"rows", |
| 264 |
"tabular" |
| 265 |
], |
| 266 |
"author": { |
| 267 |
"name": "James Halliday", |
| 268 |
"email": "[email protected]", |
| 269 |
"url": "http://substack.net" |
| 270 |
}, |
| 271 |
"license": "MIT", |
| 272 |
"readme": "# text-table\n\ngenerate borderless text table strings suitable for printing to stdout\n\n[](http://travis-ci.org/substack/text-table)\n\n[](http://ci.testling.com/substack/text-table)\n\n# example\n\n## default align\n\n``` js\nvar table = require('text-table');\nvar t = table([\n [ 'master', '0123456789abcdef' ],\n [ 'staging', 'fedcba9876543210' ]\n]);\nconsole.log(t);\n```\n\n```\nmaster 0123456789abcdef\nstaging fedcba9876543210\n```\n\n## left-right align\n\n``` js\nvar table = require('text-table');\nvar t = table([\n [ 'beep', '1024' ],\n [ 'boop', '33450' ],\n [ 'foo', '1006' ],\n [ 'bar', '45' ]\n], { align: [ 'l', 'r' ] });\nconsole.log(t);\n```\n\n```\nbeep 1024\nboop 33450\nfoo 1006\nbar 45\n```\n\n## dotted align\n\n``` js\nvar table = require('text-table');\nvar t = table([\n [ 'beep', '1024' ],\n [ 'boop', '334.212' ],\n [ 'foo', '1006' ],\n [ 'bar', '45.6' ],\n [ 'baz', '123.' ]\n], { align: [ 'l', '.' ] });\nconsole.log(t);\n```\n\n```\nbeep 1024\nboop 334.212\nfoo 1006\nbar 45.6\nbaz 123.\n```\n\n## centered\n\n``` js\nvar table = require('text-table');\nvar t = table([\n [ 'beep', '1024', 'xyz' ],\n [ 'boop', '3388450', 'tuv' ],\n [ 'foo', '10106', 'qrstuv' ],\n [ 'bar', '45', 'lmno' ]\n], { align: [ 'l', 'c', 'l' ] });\nconsole.log(t);\n```\n\n```\nbeep 1024 xyz\nboop 3388450 tuv\nfoo 10106 qrstuv\nbar 45 lmno\n```\n\n# methods\n\n``` js\nvar table = require('text-table')\n```\n\n## var s = table(rows, opts={})\n\nReturn a formatted table string `s` from an array of `rows` and some options\n`opts`.\n\n`rows` should be an array of arrays containing strings, numbers, or other\nprintable values.\n\noptions can be:\n\n* `opts.hsep` - separator to use between columns, default `' '`\n* `opts.align` - array of alignment types for each column, default `['l','l',...]`\n* `opts.stringLength` - callback function to use when calculating the string length\n\nalignment types are:\n\n* `'l'` - left\n* `'r'` - right\n* `'c'` - center\n* `'.'` - decimal\n\n# install\n\nWith [npm](https://npmjs.org) do:\n\n```\nnpm install text-table\n```\n\n# Use with ANSI-colors\n\nSince the string length of ANSI color schemes does not equal the length\nJavaScript sees internally it is necessary to pass the a custom string length\ncalculator during the main function call.\n\nSee the `test/ansi-colors.js` file for an example.\n\n# license\n\nMIT\n", |
| 273 |
"readmeFilename": "readme.markdown", |
| 274 |
"bugs": { |
| 275 |
"url": "https://github.com/substack/text-table/issues" |
| 276 |
}, |
| 277 |
"_id": "[email protected]", |
| 278 |
"dist": { |
| 279 |
"shasum": "7f5ee823ae805207c00af2df4a84ec3fcfa570b4", |
| 280 |
"tarball": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz" |
| 281 |
}, |
| 282 |
"_from": ".", |
| 283 |
"_npmVersion": "1.3.7", |
| 284 |
"_npmUser": { |
| 285 |
"name": "substack", |
| 286 |
"email": "[email protected]" |
| 287 |
}, |
| 288 |
"maintainers": [ |
| 289 |
{ |
| 290 |
"name": "substack", |
| 291 |
"email": "[email protected]" |
| 292 |
} |
| 293 |
], |
| 294 |
"directories": {} |
| 295 |
} |
| 296 |
}, |
| 297 |
"readme": "# text-table\n\ngenerate borderless text table strings suitable for printing to stdout\n\n[](http://travis-ci.org/substack/text-table)\n\n# example\n\n## default align\n\n``` js\nvar table = require('text-table');\nvar t = table([\n [ 'master', '0123456789abcdef' ],\n [ 'staging', 'fedcba9876543210' ]\n]);\nconsole.log(t);\n```\n\n```\nmaster 0123456789abcdef\nstaging fedcba9876543210\n```\n\n## left-right align\n\n``` js\nvar table = require('text-table');\nvar t = table([\n [ 'beep', '1024' ],\n [ 'boop', '33450' ],\n [ 'foo', '1006' ],\n [ 'bar', '45' ]\n], { align: [ 'l', 'r' ] });\nconsole.log(t);\n```\n\n```\nbeep 1024\nboop 33450\nfoo 1006\nbar 45\n```\n\n## dotted align\n\n``` js\nvar table = require('text-table');\nvar t = table([\n [ 'beep', '1024' ],\n [ 'boop', '334.212' ],\n [ 'foo', '1006' ],\n [ 'bar', '45.6' ],\n [ 'baz', '123.' ]\n], { align: [ 'l', '.' ] });\nconsole.log(t);\n```\n\n```\nbeep 1024\nboop 334.212\nfoo 1006\nbar 45.6\nbaz 123.\n```\n\n## centered\n\n``` js\nvar table = require('text-table');\nvar t = table([\n [ 'beep', '1024', 'xyz' ],\n [ 'boop', '3388450', 'tuv' ],\n [ 'foo', '10106', 'qrstuv' ],\n [ 'bar', '45', 'lmno' ]\n], { align: [ 'l', 'c', 'l' ] });\nconsole.log(t);\n```\n\n```\nbeep 1024 xyz\nboop 3388450 tuv\nfoo 10106 qrstuv\nbar 45 lmno\n```\n\n# methods\n\n``` js\nvar table = require('text-table')\n```\n\n## var s = table(rows, opts={})\n\nReturn a formatted table string `s` from an array of `rows` and some options\n`opts`.\n\n`rows` should be an array of arrays containing strings, numbers, or other\nprintable values.\n\noptions can be:\n\n* `opts.hsep` - separator to use between columns, default `' '`\n* `opts.align` - array of alignment types for each column, default `['l','l',...]`\n\nalignment types are:\n\n* `'l'` - left\n* `'r'` - right\n* `'c'` - center\n* `'.'` - decimal\n\n# install\n\nWith [npm](https://npmjs.org) do:\n\n```\nnpm install text-table\n```\n\n# license\n\nMIT\n", |
| 298 |
"maintainers": [ |
| 299 |
{ |
| 300 |
"name": "substack", |
| 301 |
"email": "[email protected]" |
| 302 |
} |
| 303 |
], |
| 304 |
"time": { |
| 305 |
"modified": "2018-03-26T16:22:51.827Z", |
| 306 |
"created": "2013-05-11T10:22:03.185Z", |
| 307 |
"0.0.0": "2013-05-11T10:22:04.274Z", |
| 308 |
"0.0.1": "2013-05-11T10:33:03.913Z", |
| 309 |
"0.1.0": "2013-05-12T05:16:19.975Z", |
| 310 |
"0.1.1": "2013-05-16T23:45:48.573Z", |
| 311 |
"0.2.0": "2013-10-05T03:51:26.868Z" |
| 312 |
}, |
| 313 |
"author": { |
| 314 |
"name": "James Halliday", |
| 315 |
"email": "[email protected]", |
| 316 |
"url": "http://substack.net" |
| 317 |
}, |
| 318 |
"repository": { |
| 319 |
"type": "git", |
| 320 |
"url": "git://github.com/substack/text-table.git" |
| 321 |
}, |
| 322 |
"users": { |
| 323 |
"manishrc": true, |
| 324 |
"kwpeters": true, |
| 325 |
"jokeyrhyme": true, |
| 326 |
"csardi": true, |
| 327 |
"itonyyo": true, |
| 328 |
"danpolitte": true, |
| 329 |
"xgheaven": true, |
| 330 |
"tobiasnickel": true, |
| 331 |
"mccoyjordan": true, |
| 332 |
"nickeltobias": true, |
| 333 |
"alexeyraspopov": true, |
| 334 |
"rocket0191": true, |
| 335 |
"dofy": true, |
| 336 |
"eijs": true, |
| 337 |
"wangfeia": true, |
| 338 |
"ognjen.jevremovic": true, |
| 339 |
"shuoshubao": true, |
| 340 |
"artjacob": true, |
| 341 |
"dwqs": true |
| 342 |
}, |
| 343 |
"_attachments": {} |
| 344 |
} |