Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

graceful-shutdown

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

graceful-shutdown - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

5

History.md
0.0.3 / 2013-12-12
==================
* fire callback on server close event
0.0.2 / 2013-12-12

@@ -3,0 +8,0 @@ ==================

2

index.js

@@ -57,5 +57,5 @@ 'use strict';

debug('_shutdown');
if (this.cb) this.server.on('close', this.cb);
this.server.close();
if (this.cb) this.cb();
};
{
"name": "graceful-shutdown",
"version": "0.0.2",
"version": "0.0.3",
"description": "Gracefully shutdown a server upon receiving the specified signal(s)",

@@ -5,0 +5,0 @@ "main": "index.js",

#graceful-shutdown
===================

@@ -4,0 +3,0 @@ Shuts down an `HTTP{s}Server` gracefully upon the first specified signal received by the process and executes the optional callback.

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc