universal-cookie
- Version 7.2.2
- Published
- 52.9 kB
- 2 dependencies
- MIT license
Install
npm i universal-cookie
yarn add universal-cookie
pnpm add universal-cookie
Overview
Universal cookies for JavaScript
Index
Classes
class Cookies
class Cookies {}
constructor
constructor(cookies?: string | object, defaultSetOptions?: CookieSetOptions);
property update
update: () => void;
method addChangeListener
addChangeListener: (callback: CookieChangeListener) => void;
method get
get: { (name: string, options?: CookieGetOptions): any; <T>(name: string, options?: CookieGetOptions): T;};
method getAll
getAll: { (options?: CookieGetOptions): any; <T>(options?: CookieGetOptions): T;};
method remove
remove: (name: string, options?: CookieSetOptions) => void;
method removeChangeListener
removeChangeListener: (callback: CookieChangeListener) => void;
method set
set: (name: string, value: Cookie, options?: CookieSetOptions) => void;
Interfaces
interface CookieChangeOptions
interface CookieChangeOptions {}
interface CookieGetOptions
interface CookieGetOptions {}
property doNotParse
doNotParse?: boolean;
property doNotUpdate
doNotUpdate?: boolean;
interface CookieSetOptions
interface CookieSetOptions {}
Type Aliases
type Cookie
type Cookie = any;
type CookieChangeListener
type CookieChangeListener = (options: CookieChangeOptions) => void;
Package Files (3)
Dependencies (2)
Dev Dependencies (4)
Peer Dependencies (0)
No peer dependencies.
Badge
To add a badge like this oneto your package's README, use the codes available below.
You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/universal-cookie
.
- Markdown[![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/universal-cookie)
- HTML<a href="https://www.jsdocs.io/package/universal-cookie"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>
- Updated .
Package analyzed in 3318 ms. - Missing or incorrect documentation? Open an issue for this package.