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.
Integrate with kolor-picker to provide color picker and form helper.
Add this line to your application's Gemfile:
gem 'kolor-picker'
And then execute:
bundle
Or install it yourself as:
gem install kolor-picker
Make sure you required jQuery and add the following to /app/assets/javascripts/application.js:
//= require kolor-picker
Add the following to /app/assets/stylesheets/application.css:
/*
*= require kolor-picker
*/
You can use colorpicker_tag
and colorpicker
.
<%= colorpicker_tag(name, default_color, kolor_picker_options, html_options) %>
<%= colorpicker_tag(:color, 'red', {:doRender => false}, {:class => 'color'}) %>
<%= colorpicker_tag(:color) %>
or form builder
<% form_for @item do |f| %>
<%= f.colorpicker(method, kolor_picker_options, html_options) %>
<%= f.colorpicker(:color, {:doRender => false}, {:class => 'color'}) %>
<%= f.colorpicker(:color) %>
<% end %>
The gem is available as open source under the terms of the MIT License.
The project's website is located at https://github.com/emn178/kolor-picker-rails
Author: Chen, Yi-Cyuan (emn178@gmail.com)
FAQs
Unknown package
We found that kolor-picker demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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.