1.0.0 • Published 3 years ago

@abarchibody/cookie v1.0.0

Weekly downloads
13
License
ISC
Repository
-
Last release
3 years ago

cookie is used to read, write to the localstorage.

to install

##$ npm i @abarchibody/cookie

Usage

const data = [1, 2, 3, 4]

import cookie from '@abarchibody/cookie'

Write to localstorage

cookie.set('data', data);

Read to localstorage

const myData = cookie.get('data')
console.log(myData)

// 1, 2, 3, 4

Delete data to localstorage

cookie.remove('data');