Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
all-text-mask
Advanced tools
Readme
Text Mask let's you turn a plain <input />
, into one that conforms
any user input, as they type, to a given mask pattern.
To see Text Mask in action, checkout the demo page.
IE9+, Android, Samsung Internet, Windows Phone, iOS, Opera, Firefox, Safari, and Chrome
Character | Description |
---|---|
1 | Any number |
A | Any letter |
? | Any number or letter |
U | Any letter (will be transformed to uppercase) |
L | Any letter (will be transformed to lowercase) |
The mask also supports escaping, so you can use a masking character within the mask. For example
+\1 (111) 111-1111
The first 1
is not a masking character but part of the mask. For more information, see the
documentation here.
Guide mode prints out placeholder characters and the mask itself as the user types
No-guide mode doesn't print out placeholder characters and only adds mask characters when the user reaches them
You can change the placeholder character from _
(underscore) to anything you want. For example,
you can use the unicode character U+2000
(\u2000
in JavaScript), which is white space to
create a mask for phone number that looks like
+1 ( ) -
Or for date
/ /
Please file an issue or tweet at me.
Public domain - CC0 1.0 Universal
FAQs
Conforms string to given mask or pattern, and can be hooked up to input element
The npm package all-text-mask receives a total of 1 weekly downloads. As such, all-text-mask popularity was classified as not popular.
We found that all-text-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.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.