Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hex7c0/server-signature
server response header field for Nodejs
https://github.com/hex7c0/server-signature
nodejs server-signature
Last synced: about 1 month ago
JSON representation
server response header field for Nodejs
- Host: GitHub
- URL: https://github.com/hex7c0/server-signature
- Owner: hex7c0
- License: gpl-3.0
- Created: 2014-08-12T00:54:31.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2024-03-25T22:51:28.000Z (9 months ago)
- Last Synced: 2024-04-13T19:19:46.412Z (9 months ago)
- Topics: nodejs, server-signature
- Language: JavaScript
- Homepage: https://github.com/hex7c0/server-signature
- Size: 252 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# [server-signature](https://github.com/hex7c0/server-signature)
[![NPM version](https://img.shields.io/npm/v/server-signature.svg)](https://www.npmjs.com/package/server-signature)
[![Linux Status](https://img.shields.io/travis/hex7c0/server-signature.svg?label=linux-osx)](https://travis-ci.org/hex7c0/server-signature)
[![Windows Status](https://img.shields.io/appveyor/ci/hex7c0/server-signature.svg?label=windows)](https://ci.appveyor.com/project/hex7c0/server-signature)
[![Dependency Status](https://img.shields.io/david/hex7c0/server-signature.svg)](https://david-dm.org/hex7c0/server-signature)
[![Coveralls](https://img.shields.io/coveralls/hex7c0/server-signature.svg)](https://coveralls.io/r/hex7c0/server-signature)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
```bash
npm install server-signature
```
or
```bash
git clone git://github.com/hex7c0/server-signature.git
```## API
inside expressjs project
```js
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](examples)
Full string
```bash
Server: Nodejs/0.10.30 (Darwin)
```### [License GPLv3](LICENSE)