
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
format-input
Advanced tools
Format user input as a date/credit card/etc.
npm install format-input --save
var formatInput = require('format-input');
formatInput(document.getElementById('#date-of-birth'), 'cc/cc/cccc');
Now enter the date 19/05/1985
When you type 190
it will be reformatted to 19/0
as you continue it will be reformatted until it reaches the end of the given format.
You can also supply a different separator, in fact you can use any character except for the placeholder which defaults to c
if this conflicts with your format (or you just don't like the letter 'c' then you can change the placeholder to something else, like !
. formatInput(element, '!!:!!, '!')
FAQs
Format input data
The npm package format-input receives a total of 0 weekly downloads. As such, format-input popularity was classified as not popular.
We found that format-input 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
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.