Gathering detailed insights and metrics for mobx-valite-form-store
Gathering detailed insights and metrics for mobx-valite-form-store
Gathering detailed insights and metrics for mobx-valite-form-store
Gathering detailed insights and metrics for mobx-valite-form-store
npm install mobx-valite-form-store
Typescript
Module System
Node Version
NPM Version
64.9
Supply Chain
87.2
Quality
74.4
Maintenance
100
Vulnerability
99.6
License
JavaScript (54.78%)
TypeScript (45.22%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
5 Stars
9 Commits
1 Forks
2 Watchers
1 Branches
1 Contributors
Updated on Feb 20, 2019
Latest Version
0.1.3
Package Id
mobx-valite-form-store@0.1.3
Unpacked Size
30.15 kB
Size
7.11 kB
File Count
7
NPM Version
6.2.0
Node Version
10.7.0
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
valite
form StoreA MobX form store using valite as validator.
This module is published under NPM Registry, so you can install using NPM, Yarn and other package managers.
1npm install --save mobx-valite-form-store 2 3# Use the command below if you're using Yarn. 4yarn add mobx-valite-form-store
This module provides a store class to handle form states, validators & their error states.
1import React, { Component } from 'react'; 2import { observer } from 'mobx-react'; 3import { observable } from 'mobx'; 4import FormStore from 'mobx-valite-form'; 5 6// An validator schema for entries object. 7const validators = { 8 name: [ 9 (name) => (typeof name === 'string' && !!name.trim()) || 'Name is a required entry.', 10 (name) => (name.length > 2 && name.length < 30) || 'Name should have between 2 and 30 chars.' 11 ] 12}; 13 14@observer 15export default class Form extends Component { 16 @observable store = new FormStore({ name: '' }, validators); 17 18 onSubmit = async () => { 19 await this.store.validateEntries(); 20 21 if (!this.store.isValid) 22 return; 23 this.props.onSave(this.store.entries); 24 }; 25 26 render () { 27 return ( 28 <form> 29 <input 30 value={ this.store.entries.name } 31 onChange={ (e) => this.store.setEntry('name', e.target.value) } 32 /> 33 34 { this.store.errors.name && <span>{ this.store.errors.name }</span> } 35 </form> 36 ); 37 } 38}
Released under MIT license.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 0/9 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
52 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-14
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