{"id":13624130,"url":"https://github.com/outmoded/poop","last_synced_at":"2025-04-15T20:33:17.805Z","repository":{"id":8630974,"uuid":"10276902","full_name":"outmoded/poop","owner":"outmoded","description":"hapi plugin for handling uncaught exceptions","archived":true,"fork":false,"pushed_at":"2019-01-21T15:53:40.000Z","size":91,"stargazers_count":115,"open_issues_count":0,"forks_count":15,"subscribers_count":28,"default_branch":"master","last_synced_at":"2024-11-08T12:43:01.389Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/outmoded.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-05-24T23:26:03.000Z","updated_at":"2024-08-23T16:57:01.000Z","dependencies_parsed_at":"2022-09-13T02:25:06.812Z","dependency_job_id":null,"html_url":"https://github.com/outmoded/poop","commit_stats":null,"previous_names":["hapijs/poop"],"tags_count":22,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/outmoded%2Fpoop","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/outmoded%2Fpoop/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/outmoded%2Fpoop/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/outmoded%2Fpoop/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/outmoded","download_url":"https://codeload.github.com/outmoded/poop/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249148329,"owners_count":21220516,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-01T21:01:39.130Z","updated_at":"2025-04-15T20:33:17.497Z","avatar_url":"https://github.com/outmoded.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"![poop Logo](https://raw.github.com/hapijs/poop/master/images/poop.png)\n\n[`hapi`](https://github.com/hapijs/hapi) plugin for taking a process dump and cleaning up after an uncaught exception\n\n[![Current Version](https://img.shields.io/npm/v/poop.svg)](https://www.npmjs.org/package/poop)\n[![Build Status](https://secure.travis-ci.org/hapijs/poop.png)](http://travis-ci.org/hapijs/poop)\n\nLead Maintainer: [Colin Ihrig](https://github.com/cjihrig)\n\n## Table of Contents\n\n- [Overview](#overview)\n- [Example](#example)\n- [Settings](#settings)\n    - [`heapdumpFolder`](#heapdumpfolder)\n    - [`logPath`](#logpath)\n    - [`writeStreamOptions`](#writestreamoptions)\n\n## Overview\n\nWhen an `uncaughtException` is encountered a heap dump will be output to the\nplugin folder. A log file is also written containing the exception details.\nAfter this is complete the process will exit with a failure code. Heap dumps can\nalso be taken at arbitrary times by sending a `SIGUSR1` signal to the server\nprocess.\n\n## Example\n\nThe following example shows how to register and configure `poop`. In this example,\nan uncaught exception is thrown after `poop` is registered. This will trigger a\nheap dump and `poop.log` file to be created.\n\n```javascript\n'use strict';\nvar Path = require('path');\nvar Hapi = require('hapi');\nvar Poop = require('poop');\nvar server = new Hapi.Server();\n\nserver.register({\n    register: Poop,\n    options: {\n        logPath: Path.join(__dirname, 'poop.log')\n    }\n}, function () {\n\n    throw new Error('uncaught');\n});\n```\n\n## Settings\n\nThe following options are available when configuring `poop`.\n\n### `heapdumpFolder`\n\nThe directory to place heap dump files. Defaults to the process current working directory.\n\n### `logPath`\n\nThe file path to log any uncaught exception errors. Defaults to `poop.log` in\nthe process current working directory.\n\n### `writeStreamOptions`\n\nOptions passed to the write stream of the log file. Uses Node's defaults:\n\n```javascript\n{\n    flags: 'w',\n    encoding: null,\n    fd: null,\n    mode: 0666\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foutmoded%2Fpoop","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foutmoded%2Fpoop","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foutmoded%2Fpoop/lists"}