
Security News
Meet Socket at Black Hat Europe and BSides London 2025
Socket is heading to London! Stop by our booth or schedule a meeting to see what we've been working on.
first-party-breadcrumbs
Advanced tools
BreadCrumbs is an npm library designed to enhance user experience by efficiently managing query parameters and form fields through first-party cookies. This library simplifies data handling by automatically storing query parameters in cookies and allows f
BreadCrumbs is an npm library designed to enhance user experience by efficiently managing query parameters and form fields through first-party cookies. This library simplifies data handling by automatically storing query parameters in cookies and allows for easy retrieval and manipulation of form data.
Automatic Cookie Storage: Automatically stores a cookie with all query parameters from the URL, ensuring that important data is retained between page loads.
Form Field Auto-Fill: Use the formfill function to automatically fill all form fields on the page with values stored in the cookie, making it easier for users to complete forms quickly.
Upsert Functionality: The upsert function allows you to add or update values in the cookie easily, ensuring that your data remains accurate and up-to-date.
To install the BreadCrumbs library, run:
npm install breadcrumbs
BreadCrumbs will automatically store query parameters as cookies when the library is initialized. Simply include the library in your project:
import BreadCrumbs from 'breadcrumbs';
To fill form fields with stored values, call the formfill function:
BreadCrumbs.formfill();
Use the upsert function to add new values or update existing ones in the cookie:
BreadCrumbs.upsert('key', 'value');
This project is licensed under the MIT License - see the LICENSE file for details.
Contributions are welcome! Please feel free to submit a pull request or open an issue to discuss potential changes.
Special thanks to the open-source community for their invaluable resources and inspiration!
FAQs
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 is heading to London! Stop by our booth or schedule a meeting to see what we've been working on.

Security News
OWASP’s 2025 Top 10 introduces Software Supply Chain Failures as a new category, reflecting rising concern over dependency and build system risks.

Research
/Security News
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.