koo
TypeScript icon, indicating that this package has built-in type declarations

1.5.0 • Public • Published

koo

Client-side cookies reader & writer

Install

npm install --save koo

API

koo.get([name])

Get cookies

koo.get(); // {hello: 'world'}
koo.get('hello'); // 'world'

koo.set(name, value[, options])

Set cookie with options object:

  • expires
  • path
  • domain
  • samesite
  • secure

koo.remove(name[, options])

Remove cookie

License

MIT

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.5.0
    2
    • latest

Version History

Package Sidebar

Install

npm i koo

Weekly Downloads

9

Version

1.5.0

License

MIT

Unpacked Size

4.12 kB

Total Files

6

Last publish

Collaborators

  • andrepolischuk