Socket
Socket
Sign inDemoInstall

tty-table

Package Overview
Dependencies
Maintainers
1
Versions
89
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tty-table - npm Package Compare versions

Comparing version 2.8.7 to 2.8.8

10

package.json
{
"name": "tty-table",
"version": "2.8.7",
"version": "2.8.8",
"description": "Node cli table",

@@ -22,7 +22,10 @@ "main": "src/main.js",

"test": "npx mocha",
"test-save": "npx grunt st",
"save-tests": "npx grunt st",
"lint": "npx eslint adapters/* src/*",
"lint-fix": "npx eslint adapters/* src/* --fix",
"lint-examples": "npx eslint examples/",
"lint-examples-fix": "npx eslint examples/ --fix"
"lint-examples-fix": "npx eslint examples/ --fix",
"prepublishOnly": "npm run dist",
"tags": "npx grunt tags",
"watch-tags": "npx grunt watch"
},

@@ -74,2 +77,3 @@ "repository": {

"grunt-shell": "^3.0.1",
"husky": "^4.2.1",
"jsdoc-to-markdown": "^5.0.0",

@@ -76,0 +80,0 @@ "mocha": "^6.1.4",

@@ -249,3 +249,3 @@ # tty-table 电传打字台

```sh
$ npm run test-save
$ npm run save-tests
```

@@ -261,3 +261,3 @@ - Because:

```sh
$ npx grunt tags
$ npm run tags
```

@@ -268,5 +268,23 @@

```sh
$ npx grunt watch
$ npm run watch-tags
```
## Pull Requests
Pull requests are encouraged!
- Please remember to add a unit test when necessary
- Please format your commit messages according to the ["Conventional Commits"](https://www.conventionalcommits.org/en/v1.0.0/) specification
If you aren't familiar with Conventional Commits, here's a good [article on the topic](https://dev.to/maniflames/how-conventional-commits-improved-my-git-skills-1jfk)
TL/DR:
- feat: a feature that is visible for end users.
- fix: a bugfix that is visible for end users.
- chore: a change that doesn't impact end users (e.g. chances to CI pipeline)
- docs: a change in the README or documentation
- refactor: a change in production code focused on readability, style and/or performance.
## [Packaging as a distributable](packaging.md)

@@ -273,0 +291,0 @@

@@ -64,3 +64,3 @@ const StripAnsi = require("strip-ansi")

switch(true) {
//no wrap, truncate
//no wrap, truncate
case(typeof config.truncate === "string"):

@@ -156,2 +156,3 @@ string = Format.handleTruncatedValue(string, cellOptions, innerWidth)

width: innerWidth,
minWidth: 1,
trim: true//,

@@ -236,9 +237,6 @@ //indent : '',

//add marginLeft to totalWidth
totalWidth += config.marginLeft
//if sum of all widths exceeds viewport, resize proportionately to fit
if(process && process.stdout && totalWidth > process.stdout.columns) {
//recalculate proportionately to fit size
let prop = process.stdout.columns / totalWidth
let prop = (process.stdout.columns - config.marginLeft) / totalWidth

@@ -245,0 +243,0 @@ prop = prop.toFixed(2)-0.01

@@ -219,3 +219,3 @@ const Style = require("./style.js")

(rowType === "body") ? config.columnSettings[columnIndex] : {}, //ignore columnSettings for footer
cell
(typeof cell === "object") ? cell : {}
)

@@ -222,0 +222,0 @@

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