server-destroy
    Overview
    Documentation
    Tutorials
    Insights
    Code
    Dependencies
    Contributors
    Jobs

server-destroy

Enable destroying a server, and all currently open connections.

1.0.1  •  Updated 2 years ago  •  by isaacs  •  ISC License

Enable destroying a server, and all currently open connections.

Usage

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();

Popularity

Weekly Downloads
634.7K
Stars
155

Maintenance

Development

Last ver 5 years ago
Created 7 years ago
Last commit 5 years ago
Invalid date between commits

Technology

Node version: 2.0.1
0 unpacked

Compliance

ISC License
OSI Approved
0 vulnerabilities

Contributors

1 contributors
isaacs
Maintainer, 8 commits
Works at npm, Inc.
marklacroix
1 PRs
petkaantonov
1 PRs
tabone
2 PRs
scop
1 PRs
vvo
1 PRs

Dependencies

Openbase helps developers choose among and use millions of open-source packages, so they can build amazing products faster.
FacebookTwitterLinkedIn
© 2020 Devstore, Inc.