Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

awesome-mask

Package Overview
Dependencies
Maintainers
1
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

awesome-mask - npm Package Compare versions

Comparing version 0.5.0 to 0.5.1

3

index.js

@@ -47,2 +47,5 @@ 'use strict';

// this is only for v-model
if (binding.value === 'money') {
return;
}
if (binding.value.length < 1) return;

@@ -49,0 +52,0 @@ el.dataset.mask = binding.value;

2

package.json
{
"name": "awesome-mask",
"version": "0.5.0",
"version": "0.5.1",
"description": "An awesome mask directive for Vue.js using vanilla-masker from `https://github.com/BankFacil/vanilla-masker`",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -18,4 +18,2 @@ The awesome-mask runs with `Vue.js` and uses the `vanilla-masker` to make your form awesome with masks.

```vue

@@ -26,3 +24,9 @@ <input type="text" v-mask="'AAA-9999'" />

You can also format money:
```vue
<input type="text" v-mask="'money'" />
// Turns 123499 in 1.234,99
```
This directive can also receive a object from your `data` like:

@@ -29,0 +33,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc