
Research
/Security News
Toptal’s GitHub Organization Hijacked: 10 Malicious Packages Published
Threat actors hijacked Toptal’s GitHub org, publishing npm packages with malicious payloads that steal tokens and attempt to wipe victim systems.
The gem is available here VisualArrayGem
VisualArray is a Ruby gem that displays arrays in a structured, visually appealing tabular format. It supports 1D, 2D, and multi-dimensional arrays with options for customizing text color.
Add this line to your application's Gemfile:
bundle add visual_array
Or install it manually:
gem install visual_array
require 'visual_array'
VisualArray.display([1, 2, 3, 4])
Output:
+---+---+---+---+
| 1 | 2 | 3 | 4 |
+---+---+---+---+
VisualArray.display([
[1, 2],
[3, 4]
])
Output:
+-----+-----+
| 1 | 2 |
| 3 | 4 |
+-----+-----+
VisualArray.display([[[1, 2], [3, 4]], [[5, 6], [7, 8]]])
Output:
Dimension 1, Index 0:
+-----+-----+
| 1 | 2 |
| 3 | 4 |
+-----+-----+
Dimension 1, Index 1:
+-----+-----+
| 5 | 6 |
| 7 | 8 |
+-----+-----+
You can pass optional color
parameter:
VisualArray.display(
[[[1, 2], [3, 4]], [[5, 6], [7, 8]]],
color: 'blue'
)
After checking out the repo, run:
bin/setup
to install dependencies. Use bin/console
for an interactive session.
To install this gem locally:
bundle exec rake install
To release a new version:
version.rb
.bundle exec rake release
This will create a git tag, push commits, and publish the gem to RubyGems.
Bug reports and pull requests are welcome at GitHub.
This project is available under the MIT License.
FAQs
Unknown package
We found that visual_array 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.
Research
/Security News
Threat actors hijacked Toptal’s GitHub org, publishing npm packages with malicious payloads that steal tokens and attempt to wipe victim systems.
Research
/Security News
Socket researchers investigate 4 malicious npm and PyPI packages with 56,000+ downloads that install surveillance malware.
Security News
The ongoing npm phishing campaign escalates as attackers hijack the popular 'is' package, embedding malware in multiple versions.