Socket
Socket
Sign inDemoInstall

@solid-primitives/cookies-store

Package Overview
Dependencies
2
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @solid-primitives/cookies-store

Primitive that manages browser cookies


Version published
Weekly downloads
18
increased by260%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

@solid-primitives/cookies

lerna

WARNING!: This primitive is deprecated in favour of the new/incoming Storage primitive. This package will be available but unmaintained.

A cookies storage facility.

createCookieStore - Handles creating and managing a single cookie action.

How to use it

const [value, setValue] = createCookieStore("my-cookie", "derp");
setValue("my-new-value");
console.log(value());

Demo

You may find a working example on CSB here: https://codesandbox.io/s/solid-create-cookie-store-uh192?file=/src/index.tsx

Changelog

Expand Changelog

0.0.100

Initial release.

1.1.3

Official release.

1.1.4

Patched incorrect use of serialize for the deserialize method.

1.1.5

Patched issue with deleting and added strinfication ability.

1.1.6

Fixed an issue with = in values

Keywords

FAQs

Last updated on 27 Sep 2021

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc