Socket
Socket
Sign inDemoInstall

universal-cookie-express

Package Overview
Dependencies
3
Maintainers
1
Versions
36
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    universal-cookie-express

Hook cookies get/set on Express for server-rendering


Version published
Weekly downloads
20K
decreased by-6.66%
Maintainers
1
Install size
82.8 kB
Created
Weekly downloads
 

Readme

Source

Hook cookies get/set on Express for server-rendering

Integrations

State management integration

Getting started

npm install universal-cookie-express --save

Usage

cookiesMiddleware() express middleware set req.universalCookies

Example

const express = require('express');
const cookiesMiddleware = require('universal-cookie-express');

const app = express();

app.use(cookiesMiddleware()).use(function (req, res) {
  // get the user cookies using universal-cookie
  req.universalCookies.get('myCat');
});

Keywords

FAQs

Last updated on 01 Apr 2024

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc