Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@rentspree/cookie

Package Overview
Dependencies
Maintainers
2
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rentspree/cookie

Cookie library for Rentspree's projects

  • 1.0.9
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
11
increased by83.33%
Maintainers
2
Weekly downloads
 
Created
Source

Installation

npm install @rentspree/cookie

Update a newer version

run

npm version patch

Table of Contents

setOption

Set options for the to be stored cookies.

Parameters

  • options Object (optional, default {})

addChangeListener

Add a listener to when a cookie is set or removed.

Parameters

removeChangeListener

Remove a listener from the change callback.

Parameters

setLocalItem

Set a cookie value.

Parameters

getLocalItem

Get a cookie value.

Parameters

  • name string Cookie's name
  • options Object Cookie's options (optional, default {})

Returns any cookie or false if cookie is not found.

getAllLocalItem

Get all cookies.

Parameters

  • options Object (optional, default {})

Returns all cookies.

removeLocalItem

Remove a cookie.

Parameters

  • name string Cookie's name
  • options Object Cookie's options (optional, default {})

removeAllLocalItem

Remove all cookies that has the same prefix as the parameter.

Parameters

  • prefix string Prefix of the cookie to be removed

License

MIT (http://www.opensource.org/licenses/mit-license.php)

FAQs

Package last updated on 10 Jul 2019

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