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

@bgunnarsson/tel-input

Package Overview
Dependencies
Maintainers
0
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bgunnarsson/tel-input - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

2

package.json
{
"name": "@bgunnarsson/tel-input",
"version": "0.0.2",
"version": "0.0.3",
"description": "International Telephone Input javascript library",

@@ -5,0 +5,0 @@ "type": "module",

# TelInput Documentation
# @bgunnarsson/tel-input

@@ -9,12 +9,15 @@ TelInput is a customizable telephone input field with dropdown country selection.

- Automatic dropdown with country codes and flags.
- Default country and code configuration.
- Priority and exclusion of specific countries.
- Searchable dropdown for quick country lookup.
- Pre-filled input field with country code.
## Installation
1. Include the `TelInput` class in your project.
2. Ensure the `loadModules` function provides country and flag data.
```
pnpm install @bgunnarsson/tel-input
npm install @bgunnarsson/tel-input
yarn add @bgunnarsson/tel-input
```
## Usage

@@ -62,10 +65,3 @@

### Methods
#### Constructor
Creates a new instance of `TelInput`.
#### `init()`
Initializes the component, loads modules, and sets up event listeners.
## Example

@@ -79,3 +75,3 @@

</div>
```
```

@@ -89,3 +85,3 @@ ```javascript

priority: ['is', 'us', 'gb'],
exclude: ['al', 'af']
exclude: ['al', 'af'],
search: {

@@ -92,0 +88,0 @@ placeholder: 'Search countries...'

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