table-layout
Advanced tools
Comparing version 1.0.0 to 1.0.1
{ | ||
"name": "table-layout", | ||
"author": "Lloyd Brookes <75pound@gmail.com>", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Stylable text tables, handling ansi colour. Useful for console output.", | ||
@@ -22,16 +22,16 @@ "repository": "https://github.com/75lb/table-layout.git", | ||
"test": "test-runner test/*.js", | ||
"docs": "jsdoc2md -t jsdoc2md/README.hbs index.js -p list --member-index-format list > README.md; echo", | ||
"docs": "jsdoc2md -t README.hbs index.js -p list --member-index-format list > README.md; echo", | ||
"cover": "nyc npm test && nyc report --reporter=text-lcov | coveralls" | ||
}, | ||
"dependencies": { | ||
"array-back": "^3.1.0", | ||
"array-back": "^4.0.1", | ||
"deep-extend": "~0.6.0", | ||
"typical": "^5.0.0", | ||
"typical": "^5.2.0", | ||
"wordwrapjs": "^4.0.0" | ||
}, | ||
"devDependencies": { | ||
"coveralls": "^3.0.4", | ||
"jsdoc-to-markdown": "^5.0.0", | ||
"coveralls": "^3.0.9", | ||
"jsdoc-to-markdown": "^5.0.3", | ||
"nyc": "^14.1.1", | ||
"test-runner": "~0.6.0" | ||
"test-runner": "^0.6.3" | ||
}, | ||
@@ -38,0 +38,0 @@ "files": [ |
@@ -12,9 +12,45 @@ [![view on npm](http://img.shields.io/npm/v/table-layout.svg)](https://www.npmjs.org/package/table-layout) | ||
Where input looks like this: | ||
```json | ||
[ | ||
{ | ||
"number": 15134, | ||
"title": "Coveralls has no source available ", | ||
"login": "ndelangen", | ||
"comments": 0 | ||
}, | ||
{ | ||
"number": 15133, | ||
"title": "Fixing --preserve-symlinks. Enhancing node to exploit.", | ||
"login": "phestermcs", | ||
"comments": 0 | ||
}, | ||
{ | ||
"number": 15131, | ||
"title": "Question - Confused about NPM's local installation philosophy", | ||
"login": "the1mills", | ||
"comments": 0 | ||
}, | ||
{ | ||
"number": 15130, | ||
"title": "Question - global npm cache directory if user is root?", | ||
"login": "ORESoftware", | ||
"comments": 0 | ||
} | ||
] | ||
``` | ||
> const Table = require('table-layout') | ||
> const issues = require('./example/issues') | ||
> const table = new Table(issues, { maxWidth: 60 }) | ||
> console.log(table.toString()) | ||
This code... | ||
```js | ||
const Table = require('table-layout') | ||
const issues = require('./issues.json') | ||
const table = new Table(issues, { maxWidth: 60 }) | ||
console.log(table.toString()) | ||
``` | ||
...produces this output: | ||
``` | ||
15134 Coveralls has no source available ndelangen 0 | ||
@@ -35,3 +71,2 @@ 15133 Fixing --preserve-symlinks. phestermcs 0 | ||
with .log | ||
``` | ||
@@ -118,2 +153,2 @@ | ||
© 2015-19 Lloyd Brookes \<75pound@gmail.com\>. Documented by [jsdoc-to-markdown](https://github.com/jsdoc2md/jsdoc-to-markdown). | ||
© 2015-20 Lloyd Brookes \<75pound@gmail.com\>. Documented by [jsdoc-to-markdown](https://github.com/jsdoc2md/jsdoc-to-markdown). |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
25252
11
152
+ Addedarray-back@4.0.2(transitive)
- Removedarray-back@3.1.0(transitive)
Updatedarray-back@^4.0.1
Updatedtypical@^5.2.0