Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Render tables in text for tabular terminal fun times!
asciitable is the result of me extracting some code from another project. It can render simple tables with headings and pretty hyphen/pipe character-based formatting.
Available via npm:
$ npm install asciitable
Or via git:
$ git clone git://github.com/deoxxa/asciitable.git node_modules/asciitable
asciitable
Generates a table! Easy as pie!
var table = asciitable(options, data);
// OR
var table = asciitable(data, options);
// OR
var table = asciitable(data);
// basic table
var table = asciitable([
{a: "a", b: "b", c: "c"},
{a: "asddsfa", b: "sss", c: "zxc"},
{a: "dsgvdgsdvgssdf", b: "x", c: "eryty"},
{a: "m", b: "n", c: "o", d: "p"},
]);
console.log(table);
Arguments
Options
+
character at line intersections.
Default is false. Or undefined. Whatever, default is "not enabled".Also see example.js.
var asciitable = require("asciitable");
var table = asciitable([
{a: "a", b: "b", c: "c"},
{a: "asddsfa", b: "sss", c: "zxc"},
{a: "dsgvdgsdvgssdf", b: "x", c: "eryty"},
{a: "m", b: "n", c: "o", d: "p"},
{a: 5, b: null, c: {}, d: []},
{a: function(){}},
]);
console.log(table);
Output:
-------------------------------------------------
| a | b | c | d |
-------------------------------------------------
| a | b | c | |
| asddsfa | sss | zxc | |
| dsgvdgsdvgssdf | x | eryty | |
| m | n | o | p |
| 5 | null | [object Object] | |
| function (){} | | | |
-------------------------------------------------
3-clause BSD. A copy is included with the source.
FAQs
Render tables in text for tabular terminal fun times!
The npm package asciitable receives a total of 85 weekly downloads. As such, asciitable popularity was classified as not popular.
We found that asciitable demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.