1.5.0 • Published 3 years ago

koo v1.5.0

Weekly downloads
80
License
MIT
Repository
github
Last release
3 years ago

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

1.5.0

3 years ago

1.4.0

4 years ago

1.3.1

7 years ago

1.3.0

7 years ago

1.2.2

9 years ago

1.2.1

9 years ago

1.2.0

9 years ago

1.1.0

9 years ago