Socket
Socket
Sign inDemoInstall

freon-cookies

Package Overview
Dependencies
1
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    freon-cookies

Freon plugin to parse and serialize cookies


Version published
Weekly downloads
2
Maintainers
1
Install size
24.4 kB
Created
Weekly downloads
 

Readme

Source

freon-cookies

Freon plugin to parse and serialize cookies

Installation:

npm install freon-cookies

Usage:

// ... create a Freon application ...

app.plugin(require('freon-cookies'));

Properties added to the request object

  • cookies: { String : String } - the cookies sent by the client, parsed

Properties added to the response object

  • cookies: { String : String } - the cookies that are to be sent to the client
  • addCookie: Function - adds a cookie to be sent
    • name: String - the name of the cookie to be sent
    • value: String - the value of the cookie to be sent
    • options: Object - cookie options. For more information, see this
  • removeCookie: Function - prevents a cookie from being sent to the client
    • name: String - the name of the cookie to remove
  • removeCookies: Function - prevents cookies from being sent to the client
    • names: ...String - the names of the cookies to remove
  • deleteCookie: Function - deletes a cookie from the client
    • name: String - the name of the cookie to delete
  • deleteCookies: Function - deletes cookies from the client
    • names: ...String - the names of the cookies to delete

Keywords

FAQs

Last updated on 29 Aug 2017

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