
Research
Supply Chain Attack on Axios Pulls Malicious Dependency from npm
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.
react-native-input-helper
Advanced tools
general helper for formatting different inputs as Iban, Card, Phone number
A lightweight utility library for validating and formatting:
Built to work seamlessly in React Native environments. Ideal for performance-focused apps that want an all-in-one input helper without bloating their bundle.
Unlike other libraries that handle only one input type — or require pulling in multiple large packages — react-native-input-helper provides:
| Feature | react-native-input-helper | validator.js | libphonenumber-js | iban |
|---|---|---|---|---|
| Phone number formatting | ✅ All formats | ❌ | ✅ | ❌ |
| IBAN validation | ✅ All countries | ❌ | ❌ | ✅ |
| Credit card types | ✅ Visa/Master/Troy/etc | ✅ (partial) | ❌ | ❌ |
| Bundle size | 🟢 Lightweight (3.73 kB) | ⚠️ Larger | ⚠️ Larger | Small |
| All-in-one | ✅ Yes | ❌ | ❌ | ❌ |
npm install react-native-input-helper
# or
yarn add react-native-input-helper
import {
ValidatePhoneNumber,
FormatPhoneNumber,
ValidateIban,
FormatIban,
ValidateCreditCard,
FormatCreditCard
} from 'react-native-input-helper';
// Phone
ValidatePhoneNumber('+90 534 123 45 67'); // true
FormatPhoneNumber('+905341234567'); // +90 534 123 45 67
// IBAN
ValidateIban('TR330006100519786457841326'); // true
FormatIban('TR330006100519786457841326'); // TR33 0006 1005 1978 6457 8413 26
//**NOTE**:ValidateIban also supports UBAN that is used in KKTC which starts with 'CT'
// Credit Card
ValidateCreditCard('4111111111111111').isValid; // true
ValidateCreditCard('4111111111111111').type; // 'Visa'
FormatCreditCard('4111111111111111') // 4111 1111 1111 1111
MIT
Contributions are welcome! Feel free to open issues or PRs for enhancements or regional validation formats.
react-native, validation, formatter, credit-card, iban, phone-number, lightweight, input-helper
FAQs
general helper for formatting different inputs as Iban, Card, Phone number
We found that react-native-input-helper demonstrated a healthy version release cadence and project activity because the last version was released less than 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
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.

Security News
TeamPCP is partnering with ransomware group Vect to turn open source supply chain attacks on tools like Trivy and LiteLLM into large-scale ransomware operations.