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.
Helper for drawing utils on CLI.
UtilsDrawer will help to draw utils such as a table or graph.
Supporting the simple drawing by using Ruby's Block syntax.
Add this line to your application's Gemfile:
gem 'utils_drawer'
Adjeust the column width at first row. The column width is 10 by the default. It is also possible to specify the column width in UtilsDrawer.column second argument.
require 'utils_drawer'
include UtilsDrawer
table do
row do
column('NAME')
column('SCORE', 20)
column('AGE')
end
row do
column('kaihara')
column('100,000,000')
column('22')
end
row do
column('hogefugahara')
column('200,000,000')
column('33')
end
end
If the number of characters exceeds the column width, it is omitted.
If you want to change the column width of the default:
...
table(20) do
...
end
UtilsDrawer.data accepts the data label in the first argument, the value in the second argument. The value is the bar length. The color of the bar is determined by the bar length.
require 'utils_drawer'
include UtilsDrawer
graph do
data('foo', 10)
data('hoge', 17)
data('nullpo', 0)
data('nullnull', 0)
data('nuller', 0)
data('nullest', 0)
data('bar', 7)
data('fuga', 24)
end
Be omitted value is 0 to continue.
If you don't want to omit:
...
graph({ omission: false }) do
...
end
FAQs
Unknown package
We found that utils_drawer 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.