🚀 DAY 5 OF LAUNCH WEEK:Introducing Webhook Events for Alert Changes.Learn more →
Socket
Book a DemoInstallSign in
Socket

@amphibian/delete-cookie

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@amphibian/delete-cookie

delete browser cookie

latest
npmnpm
Version
1.0.3
Version published
Maintainers
1
Created
Source

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'
});

FAQs

Package last updated on 20 Dec 2016

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