Gathering detailed insights and metrics for pixi-text-input-plus
Gathering detailed insights and metrics for pixi-text-input-plus
npm install pixi-text-input-plus
Typescript
Module System
Node Version
NPM Version
71.6
Supply Chain
91.5
Quality
75.6
Maintenance
50
Vulnerability
94.8
License
JavaScript (100%)
Total Downloads
3,772
Last Day
3
Last Week
18
Last Month
84
Last Year
481
2 Stars
174 Commits
1 Watching
2 Branches
1 Contributors
Minified
Minified + Gzipped
Latest Version
1.0.27
Package Id
pixi-text-input-plus@1.0.27
Unpacked Size
469.09 kB
Size
146.58 kB
File Count
15
NPM Version
6.14.10
Node Version
14.15.4
Cumulative downloads
Total Downloads
Last day
0%
3
Compared to previous day
Last week
500%
18
Compared to previous week
Last month
663.6%
84
Compared to previous month
Last year
-23.9%
481
Compared to previous year
This plugin is based on mwni.io TextInput PIXI plugin.
I introduce:
- the input type password
- the notion of rules to validate an input and the box colorization on blur.
- d.ts file.
Some validation rules are already integrated: - required - email - number - string - min:{number} (min:3)
And if it's not enough you can set your own validator!
Created with PIXI v5.3.9.
npm i -S pixi-text-input-plus
1import * as PIXI from 'pixi.js'; 2import 'pixi-text-input-plus'; 3 4const input = PIXI.TextInput({ 5 input: { 6 fontFamily: 'Arial', 7 fontSize: '36px', 8 padding: '12px', 9 width: '500px', 10 color: '#26272E', 11 type: 'password', // 'text' by default 12 }, 13 box: { 14 error: {fill: 0xE8E9F3, rounded: 12, stroke: {color: 0xFF0000, width: 3}}, 15 valid: {fill: 0xE8E9F3, rounded: 12, stroke: {color: 0x00FF00, width: 3}}, 16 default: {fill: 0xE8E9F3, rounded: 12, stroke: {color: 0xCBCEE0, width: 3}}, 17 focused: {fill: 0xE1E3EE, rounded: 12, stroke: {color: 0xABAFC6, width: 3}}, 18 disabled: {fill: 0xDBDBDB, rounded: 12} 19 }, 20 rules: [ 21 { 22 type: 'required', 23 onError: function() { 24 // What you want on error 25 console.log('input required'); 26 } 27 }, 28 { 29 type: 'min:3', 30 onError: function() { 31 // What you want on error 32 console.log('input min 3 chars'); 33 } 34 }, 35 { 36 type: 'regexp', 37 validate: function(value) { 38 return value === 'password'; 39 }, 40 onError: function() { 41 // What you want on error 42 console.log('it must be entered password'); 43 } 44 }, 45 ] 46});
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 0/30 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no SAST tool detected
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
70 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