
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
react-text-input-mask
Advanced tools
react-text-input-mask is a React component that provides input masking functionality. It allows you to enforce a specific input format, such as phone numbers, card number, or any custom pattern, directly within an input field.
This package is already published to NPM, use npm or yarn to download to local directory.
npm i react-text-input-mask
yarn add react-text-input-mask
import { MaskedInput } from 'react-text-input-mask';
<MaskedInput mask='TR99 9999 9999 9999 9999 9999 99'>
<input placeholder='Enter IBAN' />
</MaskedInput>
<MaskedInput mask='99/99'>
<input placeholder='MM/YY' />
</MaskedInput>
import { Input } from 'antd';
<MaskedInput mask='9999 9999 9999 9999'>
<Input placeholder='Enter card number'/>
</MaskedInput>
import styled from 'styled-components';
const StyledInput = styled.input``;
<MaskedInput mask='(999) 999 99 99'>
<StyledInput placeholder='Enter phone number'/>
</MaskedInput>
FAQs
React component for masked text input
We found that react-text-input-mask demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 open source maintainers 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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.