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

hoagie-session

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hoagie-session

Session storage for hoagie applications

  • 2.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

hoagie-session

"Session" storage for hoagie applications.

NPM version Build Status

Install

$ npm install hoagie hoagie-session --save

Usage

var hoagie = require('hoagie');
var session = require('hoagie-session');

var app = hoagie();

// On the first request, this will write a JSON file
// in the user's HOME directory named after the program.
// For example, if the program name is `math`, the file
// name is `~/.math` by default. You may specify another
// filename to session() if you like;

app.use(session());

app.use(function(req, res, next) {

  // The contents of the session file will be read, parsed,
  // and assigned to `req.session`.
  req.session; // {}

  // You may mutate req.session during the request and the
  // changes will be saved to the file.
  req.session.username = req.get('LOGNAME');

  next();
});

app.run(process.argv.slice(2));

License

ISC License

Keywords

FAQs

Package last updated on 14 Apr 2016

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