server-signature

1.6.0 • Public • Published

server-signature

NPM version Linux Status Windows Status Dependency Status Coveralls

Controls whether Server response header field which is sent back to clients includes a description of the generic OS-type of the server. Similar to Apache2.

Installation

Install through NPM

npm install server-signature

or

git clone git://github.com/hex7c0/server-signature.git

API

inside expressjs project

var signature = require('server-signature');
var app = require('express')();
 
app.use(signature());

signature(options)

options

  • header- String Header filed (default "Server")
  • signature- String ProductOnly of standard string (default "Nodejs")
  • token- String Type of directive, related to http://httpd.apache.org/docs/2.2/mod/core.html#servertokens (default "Full")
  • custom- String Rewrite standard string with this (default "disabled")
  • extra - String Write Extra information after standard or custom string (default "disabled")
  • standalone - Boolean Return function that returns server-signature (default "false")

Examples

Take a look at my examples

Full string

Server: Nodejs/0.10.30 (Darwin)

License GPLv3

Readme

Keywords

Package Sidebar

Install

npm i server-signature

Weekly Downloads

2

Version

1.6.0

License

GPL-3.0

Last publish

Collaborators

  • hex7c0