
Research
Security News
The Landscape of Malicious Open Source Packages: 2025 Mid‑Year Threat Report
A look at the top trends in how threat actors are weaponizing open source packages to deliver malware and persist across the software supply chain.
ember-intl-tel-input
Advanced tools
An Ember.js addon for entering and validating international telephone numbers.
Please check out the demo page to see the addon in action.
For more information on using ember-cli, visit http://www.ember-cli.com/.
$ ember install ember-intl-tel-input
Just place the {{intl-tel-input}}
component in the handlebars template, as you would have guessed.
{{intl-tel-input}}
The component derives from Ember.TextField
, anything you can do with the input helper can also be done with this component.
{{intl-tel-input value="555-5555"}}
With the utilities script included, the autoFormat
and autoPlaceholder
options are automatically enabled.
// ember-cli-build.js
module.exports = function(defaults) {
var app = new EmberAddon(defaults, {
intlTelInput: {
includeUtilsScript: true, // default to false
},
});
};
{{intl-tel-input}}
Use the following properties for binding:
value
for input valueselectedCountryData
for data of the currently selected countrynumber
for formatted phone numberextension
for the extension part of the numbernumberType
for the type of the current numberisValidNumber
for the validity of the numbervalidationError
for information about a validation error{{intl-tel-input
allowExtensions=true
value=value
selectedCountryData=selectedCountryData
number=number
extension=extension
numberType=numberType
isValidNumber=isValidNumber
validationError=validationError}}
intl-tel-input
provides a convenient way to look up the user's country based on their IP addresses. This example uses Telize for demonstration.
// controller
geoIpLookupFunc: function(callback) {
$.getJSON('//www.telize.com/geoip')
.always(function(resp) {
if (!resp || !resp.country_code) {
callback('');
}
callback(resp.country_code);
});
}
{{intl-tel-input
defaultCountry="auto"
geoIpLookup=geoIpLookupFunc}}
Run ember server
, and visit the demo page at http://localhost:4200.
This is a wrapper library. It simply wraps the API of the original jQuery plugin created by Jack O'Connor into an Ember.js component.
The original jQuery plugin also depends on several other open-source libraries:
This addon's demo page uses Telize for a fast, SSL-supported, yet FREE Geo IP service.
Telize no longer provide free services due to heavy abuse. The demo has switched over to ipinfo.io.
The layout and color theme of the demo page comes from Twitter's Bootstrap and Ember.js, respectively.
FAQs
The default blueprint for ember-cli addons.
The npm package ember-intl-tel-input receives a total of 45 weekly downloads. As such, ember-intl-tel-input popularity was classified as not popular.
We found that ember-intl-tel-input 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 look at the top trends in how threat actors are weaponizing open source packages to deliver malware and persist across the software supply chain.
Security News
ESLint now supports HTML linting with 48 new rules, expanding its language plugin system to cover more of the modern web development stack.
Security News
CISA is discontinuing official RSS support for KEV and cybersecurity alerts, shifting updates to email and social media, disrupting automation workflows.