Socket
Socket
Sign inDemoInstall

tty-table

Package Overview
Dependencies
95
Maintainers
1
Versions
89
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.4.0 to 2.4.1

22

docs/terminal.md

@@ -1,4 +0,4 @@

## Using tty-table as a terminal application:
# Using tty-table as a terminal application:
### Installation
## Installation

@@ -10,8 +10,8 @@ ```

### Example Usage
## Example Usage
#### Inline
### Inline
- Pipe some inline JSON to tty-table:
- Pipe some inline data to tty-table:

@@ -22,10 +22,4 @@ ```

- Pipe some inline CSV to tty-table:
### Files
```
echo '"name","price";"aapl",92.50;"ibm",120.15' | tty-table --format=csv
```
#### Files
- Pipe a csv file to tty-table via the command line:

@@ -37,3 +31,3 @@

#### Streams
### Streams

@@ -49,5 +43,5 @@ - Pipe a stream JSON to tty-table via the command line:

### Example Stream Output
## Example Stream Output
![Terminal Example](https://cloud.githubusercontent.com/assets/7478359/15691533/39f5fed4-273e-11e6-81a6-533bd8dbd1c4.gif "Terminal Example")
{
"name": "tty-table",
"version": "2.4.0",
"version": "2.4.1",
"description": "Command line table generator.",

@@ -40,3 +40,4 @@ "main": "src/main.js",

"strip-ansi": "^3.0.0",
"wcwidth": "^1.0.1"
"wcwidth": "^1.0.1",
"yargs": "^8.0.1"
},

@@ -43,0 +44,0 @@ "devDependencies": {

@@ -7,6 +7,6 @@ # tty-table

# Using tty-table as a terminal application:
## Installation
- As a [terminal application](docs/terminal.md):
```

@@ -17,35 +17,2 @@ $ sudo apt-get install nodejs

## Example Usage
### Inline
- Pipe some inline data to tty-table:
```
echo '[["name","price"],["aapl",92.50],["ibm",120.15]]' | tty-table --format=json
```
### Files
- Pipe a csv file to tty-table via the command line:
```
$ cat examples/data/data.csv | tty-table
```
### Streams
- Pipe a stream JSON to tty-table via the command line:
```
$ node examples/data/streamer.js | tty-table --format==JSON
```
*CSV is the default input format.
## Example Stream Output
![Terminal Example](https://cloud.githubusercontent.com/assets/7478359/15691533/39f5fed4-273e-11e6-81a6-533bd8dbd1c4.gif "Terminal Example")
- As a Nodejs module:

@@ -52,0 +19,0 @@

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc