Installations
npm install svelte-imask
Developer Guide
Typescript
No
Module System
CommonJS
Node Version
12.4.0
NPM Version
6.9.0
Score
78.3
Supply Chain
94.1
Quality
75.4
Maintenance
100
Vulnerability
100
License
Releases
Unable to fetch releases
Contributors
Unable to fetch Contributors
Languages
JavaScript (71.29%)
Svelte (28.71%)
Developer
PaulMaly
Download Statistics
Total Downloads
289,077
Last Day
140
Last Week
827
Last Month
3,751
Last Year
49,963
GitHub Statistics
66 Stars
15 Commits
1 Forks
2 Watching
7 Branches
1 Contributors
Bundle Size
54.41 kB
Minified
14.59 kB
Minified + Gzipped
Package Meta Information
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
Total Downloads
Cumulative downloads
Total Downloads
289,077
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
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Dependencies
1
svelte-imask
IMask input component and action for Svelte 3. demo
Usage
Install with npm or yarn:
1npm install --save svelte-imask
Parameters
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>
Events
accept
- event fires on input when the value has changed (imask instance inevent.detail
)complete
- event fires when the value is completely filled (imask instance inevent.detail
)
License
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
- Warn: no fuzzer integrations found
Reason
security policy file not detected
Details
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Reason
license file not detected
Details
- Warn: project does not have a license file
Reason
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'master'
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
- Warn: 0 commits out of 4 are checked with a SAST tool
Reason
17 existing vulnerabilities detected
Details
- Warn: Project is vulnerable to: GHSA-v88g-cgmw-v5xw
- Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw
- Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275
- Warn: Project is vulnerable to: GHSA-gxpj-cx7g-858c
- Warn: Project is vulnerable to: GHSA-ww39-953v-wcq6
- Warn: Project is vulnerable to: GHSA-43f8-2h32-f4cj
- Warn: Project is vulnerable to: GHSA-29mw-wpgm-hmr9
- Warn: Project is vulnerable to: GHSA-35jh-r3h4-6jhm
- Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3
- Warn: Project is vulnerable to: GHSA-vh95-rmgr-6w4m
- Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h
- Warn: Project is vulnerable to: GHSA-hj48-42vr-x3v9
- Warn: Project is vulnerable to: GHSA-gcx4-mw62-g8wm
- Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw
- Warn: Project is vulnerable to: GHSA-wv8q-r932-8hc7
- Warn: Project is vulnerable to: GHSA-8266-84wp-wv5c
- Warn: Project is vulnerable to: GHSA-j8xg-fqg3-53r7
Score
1.3
/10
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