Gathering detailed insights and metrics for formik-persist
Gathering detailed insights and metrics for formik-persist
Gathering detailed insights and metrics for formik-persist
Gathering detailed insights and metrics for formik-persist
npm install formik-persist
70.3
Supply Chain
83.7
Quality
74.5
Maintenance
100
Vulnerability
98.6
License
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
377 Stars
15 Commits
56 Forks
7 Watching
2 Branches
4 Contributors
Updated on 21 Nov 2024
Minified
Minified + Gzipped
TypeScript (73.44%)
JavaScript (26.56%)
Cumulative downloads
Total Downloads
Last day
3.6%
1,136
Compared to previous day
Last week
18.3%
4,902
Compared to previous week
Last month
36.1%
17,770
Compared to previous month
Last year
-1.3%
170,781
Compared to previous year
2
28
Persist and rehydrate a Formik form.
npm install formik-persist --save
Just import the <Persist >
component and put it inside any Formik form. It renders null
!
1import React from 'react' 2import { Formik, Field, Form } from 'formik' 3import { Persist } from 'formik-persist' 4 5export const Signup = () => 6 <div> 7 <h1>My Cool Persisted Form</h1> 8 <Formik 9 onSubmit={values => console.log(values)} 10 initialValues={{ firstName: '', lastName: '', email: '' }} 11 render={props => 12 <Form className="whatever"> 13 <Field name="firstName" placeholder="First Name" /> 14 <Field name="lastName" placeholder="Last Name" /> 15 <Field name="email" type="email" placeholder="Email Address" /> 16 <button type="submit">Submit</button> 17 <Persist name="signup-form" /> 18 </Form>} 19 /> 20 </div>;
Only three props!
name: string
: LocalStorage key to save form state todebounce:? number
: Default is 300
. Number of ms to debounce the function that saves form state.isSessionStorage:? boolean
: default is false
. Send if you want Session storage inplace of Local storageNo vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 3/12 approved changesets -- score normalized to 2
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- 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
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
58 existing vulnerabilities detected
Details
Score
Last Scanned on 2024-11-18
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