# server-destroy

> Enable destroying a server, and all currently open connections.

Latest version **1.0.1** (published 2015-05-20) · ISC license · 0 weekly downloads

## Install

```sh
npm install server-destroy
pnpm add server-destroy
yarn add server-destroy
bun add server-destroy
```

## Health

**Score 23/100 (F)** — status: abandoned.

Positive: has types package; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2015-05-20 |
| First published | 2013-04-04 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | separate (@types/server-destroy) |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 186 |
| Author | Isaac Z. Schlueter |
| Maintainers | isaacs |

## Links

- npm: https://www.npmjs.com/package/server-destroy
- Repository: https://github.com/isaacs/server-destroy
- Homepage: https://github.com/isaacs/server-destroy#readme
- Issues: https://github.com/isaacs/server-destroy/issues
- npm.io page: https://npm.io/package/server-destroy

## Recent versions

- 1.0.1 (latest) — 2015-05-20
- 1.0.0 — 2013-04-04

## README

# server-destroy

Enable destroying a server, and all currently open connections.

## Usage

```javascript
var enableDestroy = require('server-destroy');

var server = http.createServer(function(req, res) {
  // do stuff, blah blah blah
});

server.listen(PORT);

// enhance with a 'destroy' function
enableDestroy(server);

// some time later...
server.destroy();
```

---
_Source: https://npm.io/package/server-destroy · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
