Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

vue-find-telco

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-find-telco

Find the TSP your phone number belongs to

  • 0.5.2
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
2
Maintainers
1
Weekly downloads
 
Created
Source

🔍 Find Telco

Selecting your Telco and then inputting your phone number can be Aaargh! because i need to keep checking which TSP(Telecommunication Service Provider) owns '0903', '0803' etc. With this component, it can auto-detect the Telco for the user, win win.

GIF

✇ Usage

npm i --save vue-find-telco
import FindTelco from "vue-find-telco";
Vue.component("find-telco", FindTelco);
<find-telco placeHolder="Enter your phone number" :inputStyle="myStyle">
</find-telco>

Props

placeHolder: {String}

Defaults to 'Enter your Phone Number'. This is the text you want in the textbox.

inputStyle: {Object}

This is the default styling for the textbox. You can modify this with this prop.

Defaults to:

{
    "max-width": "50%",
    padding: "5% 15%",
    "font-size": "2rem",
    "text-align": "center",
    border: "1px solid #eda900"
}

Events

To get the value of the Telco for use in your code, listen for the find-telco event, which emits the telco found from this component.

<find-telco v-on:find-telco="showTelco($event)"></find-telco>

<script>
export default {
    methods:{
        showTelco(e) {
            console.log(e) // Shows name of Telco
        }
    }
}
</script>

Keywords

FAQs

Package last updated on 23 Dec 2019

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc