Skip to content

Latest commit

 

History

History

docs

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

cuki

cuki

Table of contents

Classes

Interfaces

Properties

Variables

Functions

Properties

default

default: object

Type declaration

Name Type
Cuki typeof Cuki
deleteCookie (name: string) => void
getCookie (name: string) => string | number | boolean | null

Variables

SameSiteEnum

Const SameSiteEnum: Readonly<{ Lax: string = 'Lax'; None: string = 'None'; Strict: string = 'Strict' }>

If none is used, then the secure option will be enabled by default.

Defined in: cuki.ts:46

Functions

deleteCookie

deleteCookie(name: string): void

Deletes the cookie of the provided name, via setting the expiration date into the past

Parameters

Name Type
name string

Returns: void

Defined in: cuki.ts:138


getCookie

getCookie(name: string): string | number | boolean | null

Retrieve the cookie value from the browser. This is not a Cuki instance. This is the primitive value as stored by the browser.

Parameters

Name Type
name string

Returns: string | number | boolean | null

Defined in: cuki.ts:131