bummmble-hive
[![CircleCI](https://circleci.com/gh/bummmble/Hive.svg?style-svg)](https://circleci.com/gh/bummmble/Hive) [![Maintainability](https://api.codeclimate.com/v1/badges/3acc284e618da936f65a/maintainability)](https://codeclimate.com/github/bummmble/Hive/maintai
Last updated 3 years ago by bashkir .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install bummmble-hive 
SYNC missed versions from official npm registry.

CircleCI Maintainability code style: prettier Open Source Love

Hive

Hive is a centralized, Express HTTP Server to be used as a starting point for building modern applications.

Installation

Install with the package manager of your choice easily. NPM is used below

npm install -S bummmble-hive

Features

  • A solid foundation for starting an Express project
  • Easily extensible and customizable middleware
  • Pretty Error handling via Pretty Error
  • A focus on security utilizing hpp and Helmet

Api

createServer

Takes some configuration and returns an Express Application instance

const server = createServer({
    // Static config determines where you want to serve your files from
    // public: is where the files are located
    // path: is your static path to request
    staticConfig: {
        public: 'build/client',
        path: '/static'
    },

    // After security takes an array of middleware to be added after the security middleware is added
    afterSecurity: [],

    // Before fallback functions the same as afterSecurity, but adds the middleware after the fallback middleware near the end
    afterFallback: [],

    // A boolean that determines whether a unique nonce should be added to the response object
    enableNonce: false

    // A boolean that determines whether Content Security Policy should be enabled
    enableCSP: false
});

Current Tags

  • 0.1.3                                ...           latest (3 years ago)

4 Versions

  • 0.1.3                                ...           3 years ago
  • 0.1.2                                ...           3 years ago
  • 0.1.1                                ...           3 years ago
  • 0.1.0                                ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 1
Last Month 0
Dependencies (6)
Dev Dependencies (18)
Dependents (1)

Copyright 2014 - 2017 © taobao.org |