New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

first-party-breadcrumbs

Package Overview
Dependencies
Maintainers
0
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

first-party-breadcrumbs

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

  • 1.0.10
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
99
decreased by-38.12%
Maintainers
0
Weekly downloads
 
Created
Source

BreadCrumbs

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.

Features

  • 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.

Installation

To install the BreadCrumbs library, run:

npm install breadcrumbs

Usage

BreadCrumbs will automatically store query parameters as cookies when the library is initialized. Simply include the library in your project:

import BreadCrumbs from 'breadcrumbs';

Filling Form Fields

To fill form fields with stored values, call the formfill function:

BreadCrumbs.formfill();

Adding or Updating Values

Use the upsert function to add new values or update existing ones in the cookie:

BreadCrumbs.upsert('key', 'value');

License

This project is licensed under the MIT License - see the LICENSE file for details.

Contributing

Contributions are welcome! Please feel free to submit a pull request or open an issue to discuss potential changes.

Acknowledgments

Special thanks to the open-source community for their invaluable resources and inspiration!

Keywords

FAQs

Package last updated on 10 Oct 2024

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc