
Research
wget to Wipeout: Malicious Go Modules Fetch Destructive Payload
Socket's research uncovers three dangerous Go modules that contain obfuscated disk-wiping malware, threatening complete data loss.
vue-intl-telephone-input
Advanced tools
Vue component for input international telephone numbers and validating.
Vue component for input international telephone numbers and validating.
yarn add vue-intl-telephone-input
npm i --save vue-intl-telephone-input
Install as a global component:
import IntlTelInput from 'vue-intl-telephone-input';
Vue.component('intl-tel-input', IntlTelInput);
In your component:
<template>
...
<intl-tel-input :countryCode="'tw'" @validateSuccess="onSuccess"></intl-tel-input>
...
<template>
<script>
export default {
data() {
return {
phone: '',
};
},
methods: {
/**
* @param {string} number
* @param {string} country
*/
onSuccess({ number, countryCode }) {
console.log(number, countryCode);
}
},
}
</script>
Add a component:
<template>
<intl-tel-input :countryCode="'tw'"></intl-tel-input>
</template>
<script>
import IntlTelInput from 'vue2-intl-tel-input';
export default {
name: 'Home',
components: {
IntlTelInput,
}
};
</script>
Property value | Type | Default value | Description |
---|---|---|---|
countryCode | String | 'tw' | Default country. ex: 'tw', 'jp', 'kr' |
dialCode | String | '' | Enter a country dial code. ex: '886', '81', '82' |
value | String | '' | Enter a phone number |
options | Object | {} | Custom Options |
options.separateDialCode | Boolean | false | Set use separate |
options.customCss | String | '' | Set custom css name |
options.input | Object | Set input attribute | |
options.input.required | Boolean | Boolean | Required property for HTML5 required attribute |
options.input.readonly | Boolean | Boolean | Set readonly attribute |
options.input.placeholder | String | '' | Set placeholder attribute |
Property value | Arguments | Description |
---|---|---|
validateSuccess | Object | Fires when the input changes on validate success with the argument is the object includes { number, country } |
validateError | Fires when the input changes on validate error |
FAQs
Vue component for input international telephone numbers and validating.
The npm package vue-intl-telephone-input receives a total of 15 weekly downloads. As such, vue-intl-telephone-input popularity was classified as not popular.
We found that vue-intl-telephone-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
Socket's research uncovers three dangerous Go modules that contain obfuscated disk-wiping malware, threatening complete data loss.
Research
Socket uncovers malicious packages on PyPI using Gmail's SMTP protocol for command and control (C2) to exfiltrate data and execute commands.
Product
We redesigned Socket's first logged-in page to display rich and insightful visualizations about your repositories protected against supply chain threats.