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.
Moticons is the easiest way to add icons to your RubyMotion project. It provides a simple interface for creating text-based or image-based icons.
Moticons is a wrapper around the FontAwesomeKit CocoaPod.
Currently Moticons supports 6 different icon fonts.
Add this line to your application's Gemfile:
gem 'moticons'
And then execute:
$ bundle && rake pod:install
Moticons provides two global helper methods for creating icons: icon_string
and icon_image
.
Both methods require you to specify the name of the icon collection and the name of the font.
The collection names are:
:awesome
:foundation
:zocial
:ion
:octicon
:material
The icon names are the typical, Ruby snake-cased version of the original name. For example, you would refer to the Font Awesome cart-arrow-down
icon as cart_arrow_down
.
You may specify collection and icon names as separate arguments:
icon_image(:ion, :star)
Or you can combine them as a single argument:
icon_image(:ion_star)
NSAttributedString
icon_string(:ion, :star, size: 40, color: UIColor.redColor)
Specifying size and color are optional.
UIImage
icon_image(:ion, :star, size: 40, color: UIColor.redColor)
Specifying size and color are optional.
This gem is available as open source under the terms of the MIT License. Refer to each icon library for their license.
FAQs
Unknown package
We found that moticons 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
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.