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-addons
Advanced tools
Readme
This Ember-cli addon provides a set of ready-to-use pipes and masks that can be used with Ember-text-mask.
Masks
numberMask
emailMask
Pipes
autoCorrectedDatePipe
ember install ember-text-mask-addons
The addon provides Ember components that can be used directly in templates.
{{number-mask}}
{{email-mask}}
{{auto-corrected-date-pipe}}
You can also import the masks or pipes and use them with the {{masked-input}}
component provided by Ember-text-mask.
To import and use the emailMask
:
import { emailMask } from 'ember-text-mask-addons';
// ... do something with the emailMask
If you wanted to use the emailMask
with the {{masked-input}}
component, you would do this:
import Ember from 'ember';
import { emailMask } from 'ember-text-mask-addons';
export default Ember.Controller.extend({
emailMask: emailMask
});
{{masked-input mask=emailMask}}
You can use the createNumberMask()
method to create a numberMask
.
import Ember from 'ember';
import { createNumberMask } from 'ember-text-mask-addons';
export default Ember.Controller.extend({
numberMask: createNumberMask()
});
Then you can use the numberMask
with the {{masked-input}}
component.
{{masked-input mask=numberMask}}
You can use the createAutoCorrectedDatePipe()
method to create an autoCorrectedDatePipe
.
import Ember from 'ember';
import { createAutoCorrectedDatePipe } from 'ember-text-mask-addons';
export default Ember.Controller.extend({
autoCorrectedDatePipe: createAutoCorrectedDatePipe('mm/dd/yyyy')
});
Then you can use the autoCorrectedDatePipe
with the {{masked-input}}
component.
{{masked-input pipe=autoCorrectedDatePipe}}
See Text Mask Addons for more information and usage instructions.
For more information about the attributes that the {{masked-input}}
component accepts, see the documentation here.
To see an example of the code running, follow these steps:
git clone git@github.com:text-mask/ember-text-mask-addons.git
cd ember-text-mask-addons
npm install
bower install
ember server
Public domain - CC0 1.0 Universal
FAQs
Addons for Ember Text Mask https://github.com/text-mask/text-mask/ember
The npm package ember-text-mask-addons receives a total of 151 weekly downloads. As such, ember-text-mask-addons popularity was classified as not popular.
We found that ember-text-mask-addons 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.