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

/koo/

    Package Sidebar

    Install

    npm i koo

    Weekly Downloads

    6

    Version

    1.5.0

    License

    MIT

    Unpacked Size

    4.12 kB

    Total Files

    6

    Last publish

    Collaborators

    • andrepolischuk