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

express-hotplate

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

express-hotplate

An express boilerplate module, because I don't want to copy my boilerplate around everywhere

  • 1.0.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

Version License Author

Express Hotplate

An express boilerplate module, because I don't want to copy my boilerplate around everywhere

Installation

It's just a basic npm package, install it like any other npm package

npm i express-hotplate

Usage

Here's an example of a complete/typical options setup using all the available utilities. When an option is not included, the utility simply won't be used.

'use strict';
const path = require("path");
const {app, server} = require("express-hotplate")({
  morgan: {
    console: true,
    log: true
  },
  helmet: true,
  cookies: {},
  body: true,
  proxy: true,
  static: path.join(__dirname, "static"),
  session: {
    secret: ["this is a very secure cookie secret"],
    resave: false,
    saveUninitialized: true,
    cookie: {},
    url: "mongodb://localhost/test-session-store"
  },
  view: "pug",
  http: { port: 80 }
});

app.get("/", (req, res)=>{
  res.send("Hello");
});

Keywords

FAQs

Package last updated on 09 Oct 2019

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