
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.
Lucide Icons implementation for Phlex
Install the gem and add to the application's Gemfile by executing:
bundle add phlex-lucide
Or add this line to your application's Gemfile:
gem "phlex-lucide"
Then add the following to your ApplicationComponent
:
class ApplicationComponent < Phlex::HTML
include Phlex::Lucide
end
class Home::IndexView < ApplicationView
def view_template
# Render "award" icon
AwardIcon()
# Render "award" icon with props
AwardIcon(size: 48, class: "text-amber-500")
# Render "award" icon without using Phlex::Kit
render Phlex::Lucide::AwardIcon.new(size: 128, class: "text-amber-500")
end
end
You can configure the icon pack by creating an initializer:
# config/initializers/phlex_lucide.rb
Phlex::Lucide.configure do |config|
config.default_size = 16
config.default_props = { stroke_width: 4 }
end
To generate the latest version of icons, run:
./bin/generate
Next, update the VERSION
constant in lib/phlex/lucide/version.rb
to match the Lucide version, and then open a pull request.
Thanks! ✌️
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/phlex-lucide. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the code of conduct.
The gem is available as open source under the terms of the MIT License.
Everyone interacting in the Phlex::Lucide project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.
FAQs
Unknown package
We found that phlex-lucide 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.