Exciting release!Introducing "safe npm". Learn more
Socket
Log inDemoInstall

cookie-store

Package Overview
Dependencies
0
Maintainers
1
Versions
11
Issues
File Explorer

Advanced tools

cookie-store

A polyfill for the Cookie Store API

    3.0.0latest
    GitHub

Version published
Maintainers
1
Weekly downloads
500
increased by7.3%

Weekly downloads

Changelog

Source

3.0.0

  • Implement getAll method (#39) (11c5d06)
  • Update delete method (#36) (fe99d16)
  • Fix chai type error (2804bcf)
  • Replace any with types (b0b0527)
  • Run entire project through Typescript compiler (a372532)
  • Add test suite (#38) (eed57b0)
  • Bump lodash from 4.17.15 to 4.17.19 (#37) (0c86e91)
  • Bump mocha from 8.0.1 to 8.1.1 (#35) (bfcda81)
  • Bump typescript from 3.9.6 to 3.9.7 (#33) (3e5d45c)
  • Create Dependabot config file (#32) (89316db)
  • Bump typescript from 3.9.5 to 3.9.6 (777b9e5)
  • Bump banner-cli from 0.14.1 to 0.14.3 (1fbc557)
  • Bump mocha from 7.2.0 to 8.0.1 (83f404f)
  • Bump typescript from 3.9.3 to 3.9.5 (bc53614)
  • Bump mocha from 7.1.2 to 7.2.0 (a70593a)
  • Bump typescript from 3.9.2 to 3.9.3 (1b12365)
  • Bump @typescript-eslint/eslint-plugin from 2.31.0 to 2.34.0 (06dbacf)
  • Bump @typescript-eslint/parser from 2.33.0 to 2.34.0 (c259c46)
  • Bump @typescript-eslint/parser from 2.31.0 to 2.33.0 (2143c9d)
  • Bump typescript from 3.8.3 to 3.9.2 (0cebb1d)
  • Bump @typescript-eslint/eslint-plugin from 2.29.0 to 2.31.0 (05139ba)
  • Bump @typescript-eslint/parser from 2.30.0 to 2.31.0 (2abcf01)
  • Bump @typescript-eslint/parser from 2.29.0 to 2.30.0 (2ad0257)
  • Bump mocha from 7.1.1 to 7.1.2 (404dd3d)
  • Bump @typescript-eslint/eslint-plugin from 2.28.0 to 2.29.0 (89d1835)
  • Bump prettier from 2.0.4 to 2.0.5 (6fde2a1)
  • Bump @typescript-eslint/parser from 2.28.0 to 2.29.0 (8642e36)
  • Add delete method (560a7d1)
  • Enforce return types (8a99620)
  • Bump @typescript-eslint/eslint-plugin from 2.27.0 to 2.28.0 (782b904)
  • Bump @typescript-eslint/parser from 2.27.0 to 2.28.0 (11cb43a)
  • Bump husky from 4.2.3 to 4.2.5 (2d464b3)
  • Bump @typescript-eslint/parser from 2.26.0 to 2.27.0 (dd37000)
  • Bump @typescript-eslint/eslint-plugin from 2.26.0 to 2.27.0 (7b1a31b)
  • Bump prettier from 2.0.3 to 2.0.4 (5f9aa2d)
  • Bump prettier from 2.0.2 to 2.0.3 (7367a29)

Readme

Source

Build Status npm version

A polyfill to allow use of the Cookie Store API in modern browsers that don't support it natively, including IE11. Also compatible with TypeScript.

Installation

npm install cookie-store

Basic Example

// import polyfill and declare types import 'cookie-store'; // set a cookie await cookieStore.set('forgive', 'me'); // get a cookie const foo = await cookieStore.get('forgive'); console.log(foo); // { name: 'forgive', value: 'me' } // set another cookie await cookieStore.set('forget', 'it'); // get multiple cookies const cookies = await cookieStore.getAll(); console.log(obj); // [{ name: 'forgive', value: 'me' }, { name: 'forget', value: 'it' }] // delete a cookie await cookieStore.delete('forget');

Keywords

FAQs

Last updated on 08 Aug 2020

Did you know?

Socket installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.

Install Socket
Socket
support@socket.devSocket SOC 2 Logo

Product

  • Package Issues
  • 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