
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
table-printer-cli
Advanced tools
Printing Simple Table on your bash terminal. Its useful when you want to present some tables on console. There is a library that you can use similar way in nodejs/typescript Projects. console-table-printer
npm install --global table-printer-cli
yarn global add table-printer-cli
Try this on your terminal.
ctp -i '[{ "id":3, "text":"like" }, {"id":4, "text":"tea"}]'
Output:
You can also pipe the input from stdin:
echo '[{ "id":3, "text":"like" }, {"id":4, "text":"tea"}]' | ctp -s
You can customize the table output using the --tableOptions
parameter. This accepts the same options as the console-table-printer library.
Example with table options:
# Use custom column styles
ctp -i '[{"id":1,"status":"active"},{"id":2,"status":"inactive"}]' --tableOptions '{"columns": [{"name": "status", "color": "green"}]}'
# Change table title
ctp -i '[{"id":1,"name":"John"}]' --tableOptions '{"title": "Users List"}'
Usage: ctp [options]
Options:
-i, --input <value> input string
-s, --stdin read input from stdin
-t, --tableOptions <value> table options in JSON format
-h, --help display help for command
FAQs
console table printer cli. Print table on bash terminal
The npm package table-printer-cli receives a total of 13 weekly downloads. As such, table-printer-cli popularity was classified as not popular.
We found that table-printer-cli demonstrated a healthy version release cadence and project activity because the last version was released less than 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
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.