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 0.4.2 to 0.4.3

index.js

11

package.json
{
"name": "table-layout",
"author": "Lloyd Brookes <75pound@gmail.com>",
"version": "0.4.2",
"version": "0.4.3",
"description": "Stylable text tables, handling ansi colour. Useful for console output.",
"repository": "https://github.com/75lb/table-layout.git",
"license": "MIT",
"main": "lib/table-layout.js",
"keywords": [

@@ -23,3 +22,3 @@ "wrap",

"test": "test-runner test/*.js",
"docs": "jsdoc2md -t jsdoc2md/README.hbs lib/*.js -p list --member-index-format list > README.md; echo",
"docs": "jsdoc2md -t jsdoc2md/README.hbs index.js -p list --member-index-format list > README.md; echo",
"cover": "istanbul cover test-runner -- test/*.js && cat coverage/lcov.info | ./node_modules/.bin/coveralls && rm -rf coverage; echo"

@@ -35,6 +34,6 @@ },

"devDependencies": {
"coveralls": "^2.13.1",
"jsdoc-to-markdown": "^3.0.0",
"test-runner": "~0.4.0"
"coveralls": "^3.0.0",
"jsdoc-to-markdown": "^4.0.1",
"test-runner": "~0.5.0"
}
}

@@ -63,3 +63,3 @@ [![view on npm](http://img.shields.io/npm/v/table-layout.svg)](https://www.npmjs.org/package/table-layout)

- [.break] <code>boolean</code> - enable word-breaking on all columns
- [.columns] <code>[columnOption](#module_table-layout--Table..columnOption)</code> - array of column-specific options
- [.columns] [<code>columnOption</code>](#module_table-layout--Table..columnOption) - array of column-specific options
- [.ignoreEmptyColumns] <code>boolean</code> - if set, empty columns or columns containing only whitespace are not rendered.

@@ -89,3 +89,3 @@ - [.padding] <code>object</code> - Padding values to set on each column. Per-column overrides can be set in the `options.columns` array.

**Kind**: instance method of <code>[Table](#exp_module_table-layout--Table)</code>
**Kind**: instance method of [<code>Table</code>](#exp_module_table-layout--Table)
<a name="module_table-layout--Table+toString"></a>

@@ -96,7 +96,7 @@

**Kind**: instance method of <code>[Table](#exp_module_table-layout--Table)</code>
**Kind**: instance method of [<code>Table</code>](#exp_module_table-layout--Table)
<a name="module_table-layout--Table..columnOption"></a>
#### Table~columnOption
**Kind**: inner typedef of <code>[Table](#exp_module_table-layout--Table)</code>
**Kind**: inner typedef of [<code>Table</code>](#exp_module_table-layout--Table)
**Properties**

@@ -107,10 +107,10 @@

| name | <code>string</code> | column name, must match a property name in the input |
| width | <code>number</code> | A specific column width. Supply either this or a min and/or max width. |
| minWidth | <code>number</code> | column min width |
| maxWidth | <code>number</code> | column max width |
| nowrap | <code>boolean</code> | disable wrapping for this column |
| break | <code>boolean</code> | enable word-breaking for this columns |
| padding | <code>object</code> | padding options |
| padding.left | <code>string</code> | a string to pad the left of each cell (default: `' '`) |
| padding.right | <code>string</code> | a string to pad the right of each cell (default: `' '`) |
| [width] | <code>number</code> | A specific column width. Supply either this or a min and/or max width. |
| [minWidth] | <code>number</code> | column min width |
| [maxWidth] | <code>number</code> | column max width |
| [nowrap] | <code>boolean</code> | disable wrapping for this column |
| [break] | <code>boolean</code> | enable word-breaking for this columns |
| [padding] | <code>object</code> | padding options |
| [padding.left] | <code>string</code> | a string to pad the left of each cell (default: `' '`) |
| [padding.right] | <code>string</code> | a string to pad the right of each cell (default: `' '`) |

@@ -120,2 +120,2 @@

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

Sorry, the diff of this file is not supported yet

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