Socket
Socket
Sign inDemoInstall

table

Package Overview
Dependencies
Maintainers
1
Versions
86
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

table - npm Package Compare versions

Comparing version 2.0.1 to 2.1.0

2

package.json
{
"name": "table",
"version": "2.0.1",
"version": "2.1.0",
"description": "Formats data into a string table.",

@@ -5,0 +5,0 @@ "main": "./dist/index.js",

@@ -16,3 +16,3 @@ # Table

[!Demo of Table displaying a list of missions to Moon](./README/demo.png)
![Demo of Table displaying a list of missions to Moon](./README/demo.png)

@@ -207,2 +207,12 @@ ## Features

โ””โ”€โ”€โ”ดโ”€โ”€โ”ดโ”€โ”€โ”˜
# ramac (ASCII; for use in terminals that do not support Unicode characters)
+--+--+--+
|0A|0B|0C|
|--|--|--|
|1A|1B|1C|
|--|--|--|
|2A|2B|2C|
+--+--+--+
```

@@ -209,0 +219,0 @@

@@ -52,3 +52,26 @@ /**

if (name === `ramac`) {
return {
topBody: `-`,
topJoin: `+`,
topLeft: `+`,
topRight: `+`,
bottomBody: `-`,
bottomJoin: `+`,
bottomLeft: `+`,
bottomRight: `+`,
bodyLeft: `|`,
bodyRight: `|`,
bodyJoin: `|`,
joinBody: `-`,
joinLeft: `|`,
joinRight: `|`,
joinJoin: `|`
};
}
throw new Error(`Unknown border template "${name}".`);
};

@@ -69,2 +69,21 @@ import {

it(`draws expected table (ramac)`, () => {
let output;
output = table(data, {
border: border(`ramac`)
});
// console.log(output);
expectTable(output, `
+--+--+--+
|0A|0B|0C|
|--|--|--|
|1A|1B|1C|
|--|--|--|
|2A|2B|2C|
+--+--+--+
`);
});
});
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