Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
bootstrap_icons_rails
Advanced tools
bootstrap_icons_rails provides the Bootstrap Icons web fonts, stylesheets as a Rails engine for use with the asset pipeline.
Keep track of changes in Changelog.
Add this line to your application's Gemfile:
gem 'bootstrap_icons_rails'
In your application.css
, include the css file:
*= require bootstrap_icons
or if you prefer scss add this to your application.scss
file:
@import 'bootstrap_icons.css'; //application.scss
If you're using .sass
and having problem with loading, try to omit .css
extenstion and import font as follows:
@import 'bootstrap_icons';
Gem provides Bootstrap Icons through helper. In your views just call bi_icon
.
bi_icon('alarm')
# => <i class="bi bi-alarm"></i>
bi_icon('alarm', style: 'color: Tomato')
# => <i class="bi bi-alarm" style="color:Tomato"></i>
bi_icon('alarm', class: 'my-class', text: 'Alarm')
# => <i class="bi bi-alarm my-class"></i>
# => <span class="bi-text">Alarm</span>
bi_icon(:alarm, text: 'Alarm', right: true)
# => <span class="bi-text-r">Alarm</span>
# => <i class="bi bi-alarm"></i>
The gem is available as open source under the terms of the MIT License.
FAQs
Unknown package
We found that bootstrap_icons_rails 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
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.