Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
@felte/extender-persist
Advanced tools
A package to persist your form's state in localStorage.
npm install --save @felte/extender-persist
# Or, if you use yarn
yarn add @felte/extender-persist
Extend Felte with the extender
export, the extenders accepts an object with options. A unique ID is required to use it as the ID for the localStorage.
import { extender } from '@felte/extender-persist';
const { form } = createForm({
// ...
extend: extender({ id: 'uniqueId' }), // or `extend: [extender({ id: 'uniqueId' })],`
// ...
});
You might not want to save certain fields such as passwords to local storage, for this you may add an extra property to the configuration of the extender with an array of paths to the data you want to ignore:
{
extend: extender({ id: 'uniqueId', ignore: ['account.password'] }),
}
Or you may add the attribute data-felte-extender-persist-ignore
to the input you don't want to persist.
FAQs
Use localStorage to persist your Felte forms
The npm package @felte/extender-persist receives a total of 27 weekly downloads. As such, @felte/extender-persist popularity was classified as not popular.
We found that @felte/extender-persist demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.