
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.
input-simple-mask
Advanced tools
Implement a simple mask for input effortlessly using the InputPhoneMask function. This function accepts various parameters to tailor the input behavior according to your needs.
window.InputPhoneMask({
input: "input", // ID of the input element
mask: "0000 0000 0000 0000", // Mask for formatting the input.
onChange: (value) => console.log(value), // Callback function triggered on input change
placeholderChar: "-", // The character shown exept of "0" in the mask
});
import { SimpleInputMask } from "input-simple-mask";
<SimpleInputMask
mask={"+76 000-000-000"}
placeholderChar={"_"}
onChange={(maskedValue) => {
// your code ...
}}
render={(props) => (
// Input should accept the 'ref' parameter
<input {...props} /> // Do not pass the input value
)}
/>
// input value = +76 ___-___-___
// The digits (except for zero) are part of the mask and will not change upon input.
// But can be only at start of mask, not between 0
import { SimpleInputMask } from "input-simple-mask";
<SimpleInputMask
mask={"0000 0000 0000 0000"}
placeholderChar={"_"}
onChange={(maskedValue) => {
// your code ...
}}
render={(props) => (
// Input should accept the 'ref' parameter
<input {...props} /> // Do not pass the input value
)}
/>
If mask is set to "00-00" and placeholderChar is set to "_", the input will display "__-__".
FAQs
chipi chipi chapa chapa
The npm package input-simple-mask receives a total of 0 weekly downloads. As such, input-simple-mask popularity was classified as not popular.
We found that input-simple-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.