
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.
flag-icons-rails provides flag-icon-css - a collection of all country flags in SVG - as a Ruby gem for use with the asset pipeline.
Add this to your Gemfile:
gem 'flag-icons-rails'
and then execute:
bundle install
Do not add gem to assets
section if you want to use flag_icon
rails helper.
In your application.css
, include the file:
/*
*= require flag-icon
*/
If you prefer SCSS, add this to your
application.scss
file:
@import "flag-icon";
Then restart your webserver if it was previously running.
In your view:
<span class="flag-icon flag-icon-by"></span>
<span class="flag-icon flag-icon-by flag-icon-squared"></span>
In your view:
flag_icon(:by)
# => <span class="flag-icon flag-icon-by"></span>
flag_icon(:by, element: :div)
# => <div class="flag-icon flag-icon-by"></div>
flag_icon(:by, squared: true)
# => <span class="flag-icon flag-icon-by flag-icon-squared"></span>
flag_icon(:by, id: 'my-flag', class: 'strong')
# => <span id="my-flag" class="flag-icon flag-icon-by strong"></span>
FAQs
Unknown package
We found that flag-icons-rails 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.
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.