New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

simplecookie

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

simplecookie

A small javascript utility to make handling cookies simple

1.0.1
latest
Source
npm
Version published
Maintainers
1
Created
Source

simpleCookie buld status

A small utility to make handling cookies simple

307 bytes minified & gzipped

Useage

After minifying/uglifying simpleCookie.js

_smplCke.set('test', {'foo' : 'bar', 1 : true}, 'Thu, 18 Dec 2019 12:00:00 UTC', '/login');

Parameters one and two are mandatory, three and four are optional, and default to session and / respectively. The value of a cookie can be a string or an object.

_smplCke.get('test')

If the value of the cookie is an object, an object will be returned. Otherwise, this will return a string.

_smplCke.del('test')

_smplCke.is('test')

Will return true or false

Contributing

This library is meant to provide a minimal API, which can be extended upon by the user if needed. With that in mind, please do not submit pull requests containing additional features, unless they allow for necessary functionality which is not currently provided.

Keywords

javascript

FAQs

Package last updated on 06 Sep 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts