
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-input-date-mask
Advanced tools
Input date masking component for React. React-input-date-mask requires React 16.8.0 or later.
npm install react-input-date-mask --save
import React from 'react';
import ReactInputDateMask from 'react-input-date-mask';
function DateInput(props) {
return <ReactInputDateMask mask='dd/mm/yyyy' showMaskOnFocus={true} className={props.className} value={props.value} onChange={props.onChange} showMaskOnHover={true} />;
}
| Name | Type | Default | Description |
|---|---|---|---|
mask | {String} | 'dd.mm.yyyy' | Mask format |
showMaskOnFocus | {Boolean} | false | If this option - true, the mask will only be displayed when an event occurs onFocus |
showMaskOnHover | {Boolean} | false | If this option - true, when you mouse over the input, the mask appears, when you mouse leave the input, the mask disappears |
className | {String} | ||
onChange | {Function} | ||
disabled | {Boolean} | false | |
readOnly | {Boolean} | false |
maskMask format. Can be a string. There are two options. The first option by default: 'dd.mm.yyyy'. The second options: 'mm.dd.yyyy'. As a separator, you can use / or .
<ReactInputDateMask mask='mm.dd.yyyy' or <ReactInputDateMask mask='dd.mm.yyyy'
<ReactInputDateMask mask='mm/dd/yyyy' or <ReactInputDateMask mask='dd/mm/yyyy'
showMaskOnFocusIf this option - false, the mask will always be displayed. If this option - true, the mask will only be displayed when an event occurs onFocus
showMaskOnHoverThis option is available when the option "showMaskOnFocus" - true. If this option - true, when you mouse over the input, the mask appears, when you mouse leave the input, the mask disappears
propertiesYou can also pass the following properties: className, disabled, readOnly, onChange
FAQs
Masked input component for React
The npm package react-input-date-mask receives a total of 402 weekly downloads. As such, react-input-date-mask popularity was classified as not popular.
We found that react-input-date-mask 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
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.