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.
handy_location_inputs
Advanced tools
Handy Location Inputs is a rails gem/engine for adding powerful location inputs to your forms. It allows you to guarentee your Country, State, and City names will be uniform without the UX penalties of Select Boxes.
Rails with turbolinks and bulma css. (Future versions will remove the dependency on Bulma.)
Add this line to your application's Gemfile:
gem 'handy_location_inputs'
And then execute:
$ bundle
Or install it yourself as:
$ gem install handy_location_inputs
First, add this line to your app/assets/javascripts/application.js manifest file.
// = require handy_location_inputs/input_controllers
Add Gon to your Gemfile gem "gon"
and add <%= include_gon %>
to the head tag of your application.
To use handy_location_inputs in a view, include HandyLocationInputs::Locatable
to that view's controller.
If the associated model is new, or has no location data yet, call country_list_to_client
to the controller action. This will pass the country list to the client.
If the model already has state and city data that you would like to pass to the client as well, call location_lists_to_client(your_model)
.
To trigger functionality in a form, include the class handy-location-inputs
somewhere on the page.
Each input needs an id of country-input
, state-input
, or city-input
respectively.
The dropdown for each input should look like this.
<div class="dropdown country-dropdown">
<div class="dropdown-menu" role="menu">
<div class="country-dropdown-content">
</div>
</div>
</div>
The gem is available as open source under the terms of the MIT License.
FAQs
Unknown package
We found that handy_location_inputs 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.