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.
generate chart.js html with ruby
Add this line to your application's Gemfile:
gem 'my_chart'
And then execute:
$ bundle
Or install it yourself as:
$ gem install my_chart
suppose you want to have some statistic on mail files:
MyChart.js do
material do
# load mail objects here
end
select :fail do |m|
m.fail?
end
line :day, :fail?, w: 1280, h: 500, asc: :key
bar :day, w: 1280, h: 500
bar :day, w: 1280, h: 500, from: :fail
output './mail_statistic.htm'
end
execute the script:
$ mychart.js mail_st.rb
bar, doughnut, line, pie, polar_area, radar are built-in with basic style
if you would like to add custom style, this is for your reference:
class Bar < MyChartType::Proto
def concrete_type
:bar
end
def concrete_options
{
scales: {
yAxes: [{
ticks: {
beginAtZero:true
}
}]
}
}
end
end
FAQs
Unknown package
We found that my_chart 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.