Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

borek

hfzi16MIT1.0.6

Easy cookie commands and Array methods

cookie, getcookie, setcookie, updatecookie, checkcookie

readme

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'

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)

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

cookie.get(name)