
Security News
The Hidden Blast Radius of the Axios Compromise
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.
react-input-masked
Advanced tools
The react-input-mask is a react component that returns an input-mask with the sanitized value and formatted for use
The react-input-mask is a react component that returns an input-mask with the sanitized value and formatted for use
npm i --save react-input-masked
Or with yarn:
yarn add react-input-masked
import React from 'react'
import MaskedInput from 'react-input-masked'
import React, { useState } from 'react'
import MaskedInput from 'react-input-masked'
const AnyComponent = () => {
const [cpf, setCpf] = useState('')
return <MaskedInput type="cpf" onChange={event => setCpf(event.target.value)} />
}
The "type" property of the component in version 1.0.4 can receive the following values:
cpf, cnpj, cep, phone
New masks will be added in future versions.
FAQs
The react-input-mask is a react component that returns an input-mask with the sanitized value and formatted for use
The npm package react-input-masked receives a total of 4 weekly downloads. As such, react-input-masked popularity was classified as not popular.
We found that react-input-masked 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.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

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.