Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
react-telephone
Advanced tools
Tiniest react input phone component (auto formating included)
Demo · Documentation · Twitter Created by Joris
Phone.Country
and Phone.Number
: coming soonyarn add react-telephone
or
npm i react-telephone
import { Phone } from 'react-telephone';
export default function MyComponent() {
return (
<Phone>
<Phone.Country />
<Phone.Number />
</Phone>
);
}
Prop | Description | Default | Value |
---|---|---|---|
defaultCountry | Default country displayed for the country selector | First country (Afghanistan) | Country ISO2 code (fr, us) |
Name | Description |
---|---|
countries | List of all countries. |
getCountryByIso | Returns the country object for a given ISO code. |
applyMask | Apply the mask to a given phone number. |
splitPhoneNumber | Split a phone number into country code and number. |
replaceDialCode | Replace the dial code of a phone number. |
Thanks goes to these wonderful people (emoji key):
Joris 💻 📖 🤔 👀 | Michaël Rézac 🤔 💻 | Varshneya Rao 💻 |
FAQs
☎️ Tiniest react input phone component (auto formating included)
The npm package react-telephone receives a total of 67 weekly downloads. As such, react-telephone popularity was classified as not popular.
We found that react-telephone 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
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.