borek

1.0.6 • Public • Published

Download Package

First you need to install the package

npm i borek

Setup Package

You can use it by importing it into the project you are using.

// es6 before
const cookie = require('borek')
// es6 after
import cookie from 'borek'

Set Cookie and Update Cookie

If you want to create a new cookie, the "name" and "value" are needed. If the cookie name is the same, it will update the existing cookie.

cookie.set(name, value)

Get Cookie

You only need the "name" to read the cookie.

cookie.get(name)

Package Sidebar

Install

npm i borek

Weekly Downloads

4

Version

1.0.6

License

MIT

Unpacked Size

2.9 kB

Total Files

4

Last publish

Collaborators

  • elmas