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

app-server

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

app-server

An express server with logging, zero-downtime, and common-middleware

  • 1.0.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
Maintainers
1
Weekly downloads
 
Created
Source

App Server

A wrapper around a common configuration for an express application server. This module wraps the following modules:

  • Express
  • Express Compression Middleware
  • Express Error Handler Middleware
  • Naught
  • Express Graceful Exit
  • Logtastic

It setup sane defaults for these modules and exposes simple confiuration options for tweaking. But overall it is an opinionated method for setting up an express service.

Install

$ npm install --save app-server

Basic Usage

var Server = require('app-server');

var server = new Server();

// Setup routes
server.app.post('/', function(req, res) {
	res.status(200).json({hello: 'world'})
});

// Start the server
server.start();

Keywords

FAQs

Package last updated on 22 Apr 2015

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