Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@types/js-cookie

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/js-cookie

TypeScript definitions for js-cookie

  • 2.2.6
  • ts2.8
  • ts2.9
  • ts3.0
  • ts3.1
  • ts3.2
  • ts3.3
  • ts3.4
  • ts3.5
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3.4M
decreased by-1.62%
Maintainers
1
Weekly downloads
 
Created

What is @types/js-cookie?

The @types/js-cookie package provides TypeScript type definitions for the js-cookie library, which is a simple, lightweight JavaScript API for handling browser cookies. It allows developers to use js-cookie in TypeScript projects with type checking and IntelliSense support.

What are @types/js-cookie's main functionalities?

Create a cookie

This code creates a cookie named 'name' with the value 'value'.

Cookies.set('name', 'value');

Read a cookie

This code reads the value of the cookie named 'name'.

let myCookie = Cookies.get('name');

Delete a cookie

This code deletes the cookie named 'name'.

Cookies.remove('name');

Create a cookie with options

This code creates a cookie with additional options like expiration and path.

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

Other packages similar to @types/js-cookie

FAQs

Package last updated on 11 Apr 2020

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