Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Generated on Apr 23, 2024 via pnpm

text-table 0.2.0

borderless text tables with alignment
Package summary
Share
0
issues
1
license
1
MIT
Package created
11 May 2013
Version published
5 Oct 2013
Maintainers
1
Total deps
1
Direct deps
0
License
MIT

Issues

0
This package has no issues

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
1 Packages, Including:
text-table@0.2.0
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

0
All Dependencies CSV
β“˜ This is a list of text-table 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities

Visualizations

Frequently Asked Questions

What does text-table do?

Text-Table is an npm package specifically designed to create borderless text table strings that are ideal for printing to stdout. This JavaScript library provides an easy and straightforward way to generate structured, reader-friendly console output.

How do you use text-table?

To use the Text-Table package, you should first install it using npm with the command: npm install text-table. After installation, you can import it in your JavaScript file using require('text-table').

Here are some code usage examples for how to work with text-table:

Default Alignment

var table = require('text-table');
var t = table([
    [ 'master', '0123456789abcdef' ],
    [ 'staging', 'fedcba9876543210' ]
]);
console.log(t);

Left-Right Alignment

var table = require('text-table');
var t = table([
    [ 'beep', '1024' ],
    [ 'boop', '33450' ],
    [ 'foo', '1006' ],
    [ 'bar', '45' ]
], { align: [ 'l', 'r' ] });
console.log(t);

Centered Alignment

var table = require('text-table');
var t = table([
    [ 'beep', '1024', 'xyz' ],
    [ 'boop', '3388450', 'tuv' ],
    [ 'foo', '10106', 'qrstuv' ],
    [ 'bar', '45', 'lmno' ]
], { align: [ 'l', 'c', 'l' ] });
console.log(t);

These code snippets generate a well-structured text table with respective alignments in your console.

Where are the text-table docs?

The documentation for the Text-Table package can be found at its GitHub repository: git://github.com/substack/text-table.git. The README file present there provides all the necessary information about the package, including its usage, installation, and possible options you can apply to customize the output.