https://github.com/grimen/connect-alive
Connect middleware for checking if app is alive or not - optionally via custom condition(s).
https://github.com/grimen/connect-alive
Last synced: 3 months ago
JSON representation
Connect middleware for checking if app is alive or not - optionally via custom condition(s).
- Host: GitHub
- URL: https://github.com/grimen/connect-alive
- Owner: grimen
- License: mit
- Created: 2011-10-29T08:03:26.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2011-10-29T13:22:35.000Z (over 13 years ago)
- Last Synced: 2025-02-17T22:50:50.334Z (3 months ago)
- Homepage: http://search.npmjs.org/#/connect-alive
- Size: 90.8 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.textile
- License: MIT-LICENSE
Awesome Lists containing this project
README
h1. CONNECT-ALIVE "!https://secure.travis-ci.org/merchii/connect-alive.png!":http://travis-ci.org/merchii/connect-alive
_Connect middleware for checking if app is alive or not - optionally via custom condition(s)._
h2. Installation
$ npm install connect-aliveh2. Usage
*Minimal:*
connect.createServer(
alive()
);*Advanced:*
connect.createServer(
alive(function() {
// Check that you got all horses/unicorns in the stable...or something.
var got_all_horses = parseInt(process.env.HORSES_IN_THE_STABLE) == 5;return got_all_horses;
})
);h2. Test
GET /alive?h2. Notes
This gem was developed for our own requirements at *"Merchii":http://github.com/merchii*, so feel free to send pull-requests with enhancements of any kind (features, bug-fixes, documentation, tests, etc.) to make it better or useful for you as well.
h2. License
Released under the MIT license.
Copyright (c) "Jonas Grimfelt":http://github.com/grimen, "Merchii":http://github.com/merchii