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.
ember-text-mask
Advanced tools
Readme
First, install it.
ember install ember-text-mask
Then, use it as follows:
Add the following markup to your template to render a masked input component.
{{masked-input mask=mask}}
In the template's controller, specify a mask
.
import Controller from '@ember/controller';
export default Controller.extend({
mask: ['(', /[1-9]/, /\d/, /\d/, ')', ' ', /\d/, /\d/, /\d/, '-', /\d/, /\d/, /\d/, /\d/]
});
📍 For more information about the attributes that the masked-input
component accepts, see the
documentation here.
Text Mask does not provide an option to unmask the model before storing it. You can sanitize the model on your side. See here for details.
To see an example of the code running, follow these steps:
git clone git@github.com:text-mask/text-mask.git
cd text-mask/ember
npm install
bower install
ember serve
You should have a working demo.
FAQs
Ember input component that accepts mask pattern
The npm package ember-text-mask receives a total of 512 weekly downloads. As such, ember-text-mask popularity was classified as not popular.
We found that ember-text-mask demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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.