Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

table-layout

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

table-layout - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

README.hbs

14

package.json
{
"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 @@

&copy; 2015-19 Lloyd Brookes \<75pound@gmail.com\>. Documented by [jsdoc-to-markdown](https://github.com/jsdoc2md/jsdoc-to-markdown).
&copy; 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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc