A JavaScript library that stores form data to localStorage and re-applies it on page load, preventing users from having to re-enter form input. Version 1.3.5 is the current stable release. Development is minimal; no major updates in recent years. Differentiators: simplicity (no dependencies), support for ignore/include selectors, and automatic save/apply cycle.
npm install form-storageNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to create a FormStorage instance with include selectors, apply stored data, and save on form submit.
Always provide a unique 'name' per form to avoid data collisions.
Ensure the selector points to a valid HTML <form> element.
Consider migrating to a maintained alternative like 'formdata-polyfill' or custom solution.
Update to version 1.0.0 or later, or use the old API: formStorage.saveAll()
Ensure <script src="https://unpkg.com/form-storage@1.2.0/build/form-storage.js"></script> is included before your code.
Run 'npm install form-storage' and ensure your bundler (webpack/browserify) is configured correctly.
No dependency data recorded yet.