js-cookie-remove-all

A simple patch to js-cookie lib that adds a function to remove all cookies

Usage no npm install needed!

<script type="module">
  import jsCookieRemoveAll from 'https://cdn.skypack.dev/js-cookie-remove-all';
</script>

README

js-cookie-remove-all

Build Status npm

This is a lib that patches js-cookie to add a useful removeAll function that removes all the cookies accessible from the page.

Just drop into package.json

npm install --save js-cookie-remove-all

and require it:

var Cookies = require('js-cookie-remove-all');

// ...

Cookies.removeAll(attributes);