npm

npm’s 2019 JavaScript ecosystem survey analysis is now available!Get your copy here »

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

install

npm i server-signature

Downloadsweekly downloads

20

version

1.6.0

license

GPL-3.0

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability