@amphibian/delete-cookie

1.0.3 • Public • Published

delete-cookie

build status

delete browser cookie

npm install @amphibian/delete-cookie

Arguments

name String

Cookie name.

options Object

Options for setting the cookie.

  • domain String: Cookie domain. Current hostname without subdomains is the default, eg. npmjs.org.
  • path String: Cookie path. / is the default.

Example

var deleteCookie = require('@amphibian/delete-cookie');

deleteCookie('test_cookie');

// By default, the cookie domain is set to the current hostname without
// subdomains included. Override this using the `domains` option
deleteCookie('test_cookie2', {
    domains: 'my-domain.com'
});

/@amphibian/delete-cookie/

    Package Sidebar

    Install

    npm i @amphibian/delete-cookie

    Weekly Downloads

    4

    Version

    1.0.3

    License

    ISC

    Last publish

    Collaborators

    • thomaslindstr_m