{"_id":"express-github-webhook","_rev":"15-aa3a56992e5910726c3cb0cf9f68068e","name":"express-github-webhook","time":{"modified":"2022-06-17T22:18:57.118Z","created":"2016-03-06T13:20:20.377Z","1.0.0":"2016-03-06T13:20:20.377Z","1.0.1":"2016-03-06T16:59:19.805Z","1.0.3":"2016-03-06T18:19:33.899Z","1.0.4":"2016-03-08T02:32:19.926Z","1.0.5":"2016-03-12T07:44:44.010Z","1.0.6":"2017-03-27T19:33:34.360Z"},"maintainers":[{"name":"gisonrg","email":"gisonrg@gmail.com"}],"dist-tags":{"latest":"1.0.6"},"description":"A Express middleware for handle Github Webhooks","readme":"# express-github-webhook\n[![Build Status](https://travis-ci.org/Gisonrg/express-github-webhook.svg?branch=master)](https://travis-ci.org/Gisonrg/express-github-webhook)\n\nA Express middleware for handle Github [Webhooks](https://developer.github.com/webhooks/)\n\nTo Install:\n-----------\n```\nnpm install express-github-webhook\n```\n\nTo Use:\n-------\n\n**Make sure you use [body-parser](https://github.com/expressjs/body-parser) middleware for your Express app**\n\n```javascript\nvar GithubWebHook = require('express-github-webhook');\nvar webhookHandler = GithubWebHook({ path: '/webhook', secret: 'secret' });\n\n// use in your express app\nlet app = express();\napp.use(bodyParser.json()); // must use bodyParser in express\napp.use(webhookHandler); // use our middleware\n\n// Now could handle following events\nwebhookHandler.on('*', function (event, repo, data) {\n});\n\nwebhookHandler.on('event', function (repo, data) {\n});\n\nwebhookHandler.on('reponame', function (event, data) {\n});\n\nwebhookHandler.on('error', function (err, req, res) {\n});\n```\n\nWhere **'event'** is the event name to listen to (sent by [GitHub](https://developer.github.com/webhooks/#events), such as 'push'), **'reponame'** is the name of your repo.\n\n**'error'** event is a special event, which will be triggered when something goes wrong in the handler (like failed to verify the signature).\n\nAvailable options for creating handler are:\n\n* path: the path for the GitHub callback, only request that matches this path will be handled by the middleware.\n* secret (option): the secret used to verify the signature of the hook. If secret is set, then request without signature will fail the handler. If secret is not set, then the signature of the request (if any) will be ignored. [Read more](https://developer.github.com/webhooks/securing/)\n\n\nTODO\n-----------\n* Add support for content type of `application/x-www-form-urlencoded`\n* Provide more available options\n* Get rid of `body-parser` middleware\n\nLicense\n=======\n\n[MIT](LICENSE)\n","versions":{"1.0.1":{"name":"express-github-webhook","version":"1.0.1","description":"A Express middleware for handle Github Webhooks","main":"index.js","scripts":{"test":"node test/index | tap-spec"},"keywords":["github","webhook","express","middleware"],"author":{"name":"Jiang Sheng","email":"gisonrg@gmail.com","url":"http://gisonrg.me"},"license":"MIT","dependencies":{"buffer-equal-constant-time":"^1.0.1"},"devDependencies":{"body-parser":"^1.15.0","express":"^4.13.4","supertest":"^1.2.0","tap-spec":"^4.1.1","tape":"^4.5.0"},"gitHead":"c64cbeacf613a743ab319bc2ddc70775266c69fa","_id":"express-github-webhook@1.0.1","_shasum":"cac7884b81d3aa9ce14ad30610e894dd8fd6b868","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.3","_npmUser":{"name":"gisonrg","email":"gisonrg@gmail.com"},"dist":{"shasum":"cac7884b81d3aa9ce14ad30610e894dd8fd6b868","tarball":"https://registry.npmjs.org/express-github-webhook/-/express-github-webhook-1.0.1.tgz","integrity":"sha512-cNGGkYyRN65RxIxQ3Sbe9GmiJTBXB8/5b7PbgZ65HW5bEuCROnDCd1Lot1i1mD2ybyl726tA85cfhcjphcOt/w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD2WGYaFr86RzNHTb80g3st/dqAJnZ9xHbEaqP9sDdBywIgTHVSrH2afoWFAzYMuFb5fp5Qxii2IqvHPCWEXO3iPC8="}]},"maintainers":[{"name":"gisonrg","email":"gisonrg@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/express-github-webhook-1.0.1.tgz_1457283558417_0.9650205650832504"}},"1.0.3":{"name":"express-github-webhook","version":"1.0.3","description":"A Express middleware for handle Github Webhooks","main":"index.js","scripts":{"test":"node test/index | tap-spec"},"keywords":["github","webhook","express","middleware"],"author":{"name":"Jiang Sheng","email":"gisonrg@gmail.com","url":"http://gisonrg.me"},"license":"MIT","dependencies":{"buffer-equal-constant-time":"^1.0.1"},"devDependencies":{"body-parser":"^1.15.0","express":"^4.13.4","supertest":"^1.2.0","tap-spec":"^4.1.1","tape":"^4.5.0"},"gitHead":"fd9e8eb4fec0c4316f64710e625d0fa35b1d470d","_id":"express-github-webhook@1.0.3","_shasum":"bbe0e397c3c6adaaee50d9e8b2b83782d2b5f1ce","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.3","_npmUser":{"name":"gisonrg","email":"gisonrg@gmail.com"},"dist":{"shasum":"bbe0e397c3c6adaaee50d9e8b2b83782d2b5f1ce","tarball":"https://registry.npmjs.org/express-github-webhook/-/express-github-webhook-1.0.3.tgz","integrity":"sha512-+XsbXHKVS529UAED8IA+7y8vPDSrMgcNOShGXucI2TT0EBzra/sii0JJyGsvmGl3H9DYI2w8S416AoZIIDgd7Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIQDvHgHfP14vZHZKk0PuWTAD+2c+qbk3Lol5/CwDFkVx6gIfTsBf/8nt1PgYHdkIYYBFZQ1vhyNrAPkmORekM+ULyg=="}]},"maintainers":[{"name":"gisonrg","email":"gisonrg@gmail.com"}],"_npmOperationalInternal":{"host":"packages-13-west.internal.npmjs.com","tmp":"tmp/express-github-webhook-1.0.3.tgz_1457288372488_0.3743119891732931"}},"1.0.4":{"name":"express-github-webhook","version":"1.0.4","description":"A Express middleware for handle Github Webhooks","main":"index.js","repository":{"type":"git","url":"git+https://github.com/gisonrg/express-github-webhook.git"},"scripts":{"test":"node test/index | tap-spec"},"keywords":["github","webhook","express","middleware"],"author":{"name":"Jiang Sheng","email":"gisonrg@gmail.com","url":"http://gisonrg.me"},"license":"MIT","dependencies":{"buffer-equal-constant-time":"^1.0.1"},"devDependencies":{"body-parser":"^1.15.0","express":"^4.13.4","supertest":"^1.2.0","tap-spec":"^4.1.1","tape":"^4.5.0"},"gitHead":"79bd5b9e5e0fd37bb09ebcaa3762051f3ae113f0","bugs":{"url":"https://github.com/gisonrg/express-github-webhook/issues"},"homepage":"https://github.com/gisonrg/express-github-webhook#readme","_id":"express-github-webhook@1.0.4","_shasum":"c2e8e90e5c80f0729a7769f33d806acffada66b4","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.3","_npmUser":{"name":"gisonrg","email":"gisonrg@gmail.com"},"dist":{"shasum":"c2e8e90e5c80f0729a7769f33d806acffada66b4","tarball":"https://registry.npmjs.org/express-github-webhook/-/express-github-webhook-1.0.4.tgz","integrity":"sha512-Ms9g7wO2a5ptyYd1A5NSJcYx/P6SmrS6dtcWMyipmS78vinQuNAPjm+yjYHqqrCnnqy3OXr/goUV15eIqJnZjQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCIuFixx4Dr6+VPbDag5/XKBHpTJD/5yzKROcOq6lc/vgIhAOXsGZH0ecVTD0ilQ6sqjcrJB7mEd5W2SfTOB1UAcQTI"}]},"maintainers":[{"name":"gisonrg","email":"gisonrg@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/express-github-webhook-1.0.4.tgz_1457404337900_0.8009521774947643"}},"1.0.5":{"name":"express-github-webhook","version":"1.0.5","description":"A Express middleware for handle Github Webhooks","main":"index.js","repository":{"type":"git","url":"git+https://github.com/gisonrg/express-github-webhook.git"},"scripts":{"test":"node test/index | tap-spec"},"keywords":["github","webhook","express","middleware"],"author":{"name":"Jiang Sheng","email":"gisonrg@gmail.com","url":"http://gisonrg.me"},"license":"MIT","dependencies":{"buffer-equal-constant-time":"^1.0.1"},"devDependencies":{"body-parser":"^1.15.0","express":"^4.13.4","supertest":"^1.2.0","tap-spec":"^4.1.1","tape":"^4.5.0"},"gitHead":"5dc999eaba46c41bffc769ded5cb84189a32fde5","bugs":{"url":"https://github.com/gisonrg/express-github-webhook/issues"},"homepage":"https://github.com/gisonrg/express-github-webhook#readme","_id":"express-github-webhook@1.0.5","_shasum":"270d592aaaf1db276104564ee43ca6b0bf969ba7","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.3","_npmUser":{"name":"gisonrg","email":"gisonrg@gmail.com"},"dist":{"shasum":"270d592aaaf1db276104564ee43ca6b0bf969ba7","tarball":"https://registry.npmjs.org/express-github-webhook/-/express-github-webhook-1.0.5.tgz","integrity":"sha512-NoMjy7lGsEc3ZwIkOv6R1Z0aAgnbufFKNvSyYduIjfcMN7CNAqBWhwSqlH0WK3W/RWd0bk3n0gxEfQf4t+lfmQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEodcfgSJHzZzS5TqjYjjS0EypKHs85yCU99MbVXXciYAiEA9SBnCSAwAy5cIESDqLdEmBRvMBqspjcjPaqITSZn7vc="}]},"maintainers":[{"name":"gisonrg","email":"gisonrg@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/express-github-webhook-1.0.5.tgz_1457768683573_0.6482476815581322"}},"1.0.6":{"name":"express-github-webhook","version":"1.0.6","description":"A Express middleware for handle Github Webhooks","main":"index.js","repository":{"type":"git","url":"git+https://github.com/gisonrg/express-github-webhook.git"},"scripts":{"test":"node test/index | tap-spec"},"keywords":["github","webhook","express","middleware"],"author":{"name":"Jiang Sheng","email":"gisonrg@gmail.com","url":"http://gisonrg.me"},"license":"MIT","dependencies":{"buffer-equal-constant-time":"^1.0.1"},"devDependencies":{"body-parser":"^1.15.0","express":"^4.13.4","supertest":"^1.2.0","tap-spec":"^4.1.1","tape":"^4.5.0"},"gitHead":"e41222c1d417cc0b1223dd7b6b7dd8b9f6bdc78b","bugs":{"url":"https://github.com/gisonrg/express-github-webhook/issues"},"homepage":"https://github.com/gisonrg/express-github-webhook#readme","_id":"express-github-webhook@1.0.6","_shasum":"a980ca0ab88b8cbda47b94a1e918c3f0a68f4cad","_from":".","_npmVersion":"4.4.1","_nodeVersion":"7.4.0","_npmUser":{"name":"gisonrg","email":"gisonrg@gmail.com"},"dist":{"shasum":"a980ca0ab88b8cbda47b94a1e918c3f0a68f4cad","tarball":"https://registry.npmjs.org/express-github-webhook/-/express-github-webhook-1.0.6.tgz","integrity":"sha512-7DUdoWfJBO3uaeib33zEYqmRWm6lgZ0j4CIUt0xYBnMC3LLnHGBpn+X5/eOcCLKGXrpLyRHbvF57VADUTf5Llw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICtQbCFYSbc+vk6ktFBzOUqSospAaCbDQG5F3cLDvun0AiBPeveYhfLeE9FEPKsvv2O6dZ/W0vPLQvdf7BTtZENtJQ=="}]},"maintainers":[{"name":"gisonrg","email":"gisonrg@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/express-github-webhook-1.0.6.tgz_1490643214091_0.822505398420617"}}},"keywords":["github","webhook","express","middleware"],"author":{"name":"Jiang Sheng","email":"gisonrg@gmail.com","url":"http://gisonrg.me"},"license":"MIT","readmeFilename":"README.md","homepage":"https://github.com/gisonrg/express-github-webhook#readme","repository":{"type":"git","url":"git+https://github.com/gisonrg/express-github-webhook.git"},"bugs":{"url":"https://github.com/gisonrg/express-github-webhook/issues"},"users":{"noeljackson":true,"mano.rajesh":true,"c01nd01r":true,"adrienjoly":true}}