Gathering detailed insights and metrics for svelte-imask
Gathering detailed insights and metrics for svelte-imask
npm install svelte-imask
Typescript
Module System
Node Version
NPM Version
78.3
Supply Chain
94.1
Quality
75.4
Maintenance
100
Vulnerability
100
License
JavaScript (71.29%)
Svelte (28.71%)
Total Downloads
289,077
Last Day
140
Last Week
827
Last Month
3,751
Last Year
49,963
66 Stars
15 Commits
1 Forks
2 Watching
7 Branches
1 Contributors
Minified
Minified + Gzipped
Latest Version
1.2.0
Package Id
svelte-imask@1.2.0
Size
53.94 kB
NPM Version
6.9.0
Node Version
12.4.0
Publised On
02 Dec 2019
Cumulative downloads
Total Downloads
Last day
-30%
140
Compared to previous day
Last week
-8.7%
827
Compared to previous week
Last month
18.6%
3,751
Compared to previous month
Last year
-30.3%
49,963
Compared to previous year
1
IMask input component and action for Svelte 3. demo
Install with npm or yarn:
1npm install --save svelte-imask
Any options of imask can be passed to action as options or MaskedComponent via options
prop.
Then import MaskedInput
component to your Svelte app. options
prop will be passed to imask
action. Any other props will be assigned to input element itself.
1<label> 2 <MaskedInput 3 bind:value={tel} 4 options={options} 5 on:complete={complete} 6 name="phone" 7 type="tel" 8 /> 9</label> 10 11<script> 12 import { MaskedInput } from 'svelte-imask'; 13 14 const options = { 15 mask: '+{7}(000)000-00-00' 16 }; 17 18 let tel; 19 20 function complete({ detail: imask }) { 21 console.log('completed', imask); 22 } 23</script>
OR import imask
action to get full control.
1<label> 2 <input 3 use:imask={options} 4 on:accept={accept} 5 on:complete={complete} 6 name="phone" 7 type="tel" 8 > 9</label> 10 11<script> 12 import { imask } from 'svelte-imask'; 13 14 const options = { 15 mask: '+{7}(000)000-00-00' 16 }; 17 18 function accept({ detail: imask }) { 19 console.log('accepted', imask); 20 } 21 22 function complete({ detail: imask }) { 23 console.log('completed', imask); 24 } 25</script>
accept
- event fires on input when the value has changed (imask instance in event.detail
)complete
- event fires when the value is completely filled (imask instance in event.detail
)MIT © PaulMaly
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 0/11 approved changesets -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
security policy file not detected
Details
Reason
license file not detected
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
17 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-01-27
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More