Socket
Socket
Sign inDemoInstall

es-cookie

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

es-cookie

A JavaScript module for handling cookies


Version published
Weekly downloads
280K
decreased by-5.23%
Maintainers
1
Weekly downloads
 
Created

What is es-cookie?

The es-cookie npm package is a simple and lightweight JavaScript library for handling cookies in the browser. It provides an easy-to-use API for setting, getting, and deleting cookies.

What are es-cookie's main functionalities?

Set a Cookie

This feature allows you to set a cookie with a specified name and value. The optional third parameter can be used to set additional cookie attributes such as expiration time, path, domain, and secure flag.

esCookie.set('name', 'value', { expires: 7 });

Get a Cookie

This feature allows you to retrieve the value of a cookie by its name. If the cookie does not exist, it returns undefined.

const value = esCookie.get('name');

Delete a Cookie

This feature allows you to delete a cookie by its name. You can also specify additional attributes to ensure the correct cookie is removed.

esCookie.remove('name');

Other packages similar to es-cookie

Keywords

FAQs

Package last updated on 05 Feb 2017

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc