Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
intl-tel-input-rails
Advanced tools
This gem is a simple wrapper for the intl-tel-input library.
Add this line to your application's Gemfile:
gem 'intl-tel-input-rails'
And then execute:
$ bundle
Or install it yourself as:
$ gem install intl-tel-input-rails
Add the following directive to your Javascript manifest file:
//= require intlTelInput
Coffeescript flavor:
#= require intlTelInput
If you need to initialize the plugin with the utilsScript
(enable formatting/validation), add one more line:
//= require libphonenumber/utils
Add the following directive to your Stylesheet manifest file:
@import "intlTelInput";
Initialize the plugin when needed. Example:
$("#id_of_your_input").intlTelInput({
formatOnInit: true,
separateDialCode: true,
utilsScript: "assets/libphonenumber/utils.js"
});
More options for initializing the plugin. You can ignore the utilsScript
option if you have already required the libphonenumber/utils
as stated above.
intl-tel-input-rails 12.3.0.x == intl-tel-input 12.3.0
Where x is used for gem fixes while keeping the same original library version.
FAQs
Unknown package
We found that intl-tel-input-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.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.