{"id":14982075,"url":"https://github.com/gulpjs/plugin-error","last_synced_at":"2025-10-16T09:20:02.517Z","repository":{"id":31071645,"uuid":"34630556","full_name":"gulpjs/plugin-error","owner":"gulpjs","description":"Error handling for vinyl plugins. Just an abstraction of what's in gulp-util with minor reformatting.","archived":false,"fork":false,"pushed_at":"2022-12-06T19:28:42.000Z","size":42,"stargazers_count":19,"open_issues_count":4,"forks_count":13,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-08-03T05:30:46.746Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gulpjs.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":"2015-04-26T20:43:07.000Z","updated_at":"2024-08-02T02:19:47.000Z","dependencies_parsed_at":"2022-09-21T01:52:42.644Z","dependency_job_id":null,"html_url":"https://github.com/gulpjs/plugin-error","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/gulpjs/plugin-error","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gulpjs%2Fplugin-error","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gulpjs%2Fplugin-error/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gulpjs%2Fplugin-error/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gulpjs%2Fplugin-error/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gulpjs","download_url":"https://codeload.github.com/gulpjs/plugin-error/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gulpjs%2Fplugin-error/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269292224,"owners_count":24392496,"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","status":"online","status_checked_at":"2025-08-07T02:00:09.698Z","response_time":73,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-09-24T14:04:44.671Z","updated_at":"2025-10-16T09:19:57.462Z","avatar_url":"https://github.com/gulpjs.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003ca href=\"http://gulpjs.com\"\u003e\n    \u003cimg height=\"257\" width=\"114\" src=\"https://raw.githubusercontent.com/gulpjs/artwork/master/gulp-2x.png\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n# plugin-error\n\n[![NPM version][npm-image]][npm-url] [![Downloads][downloads-image]][npm-url] [![Build Status][ci-image]][ci-url] [![Coveralls Status][coveralls-image]][coveralls-url]\n\nError handling for Vinyl plugins.\n\n## Usage\n\n```js\nvar PluginError = require('plugin-error');\n\nvar err = new PluginError('test', {\n  message: 'something broke',\n});\n\nvar err = new PluginError({\n  plugin: 'test',\n  message: 'something broke',\n});\n\nvar err = new PluginError('test', 'something broke');\n\nvar err = new PluginError('test', 'something broke', { showStack: true });\n\nvar existingError = new Error('OMG');\nvar err = new PluginError('test', existingError, { showStack: true });\n```\n\n## API\n\n### `new PluginError(pluginName, message[, options])`\n\nError constructor that takes:\n\n- `pluginName` - a `String` that should be the module name of your plugin\n- `message` - a `String` message or an existing `Error` object\n- `options` - an `Object` of your options\n\n**Behavior:**\n\n- By default the stack will not be shown. Set `options.showStack` to true if you think the stack is important for your error.\n- If you pass an error object as the message the stack will be pulled from that, otherwise one will be created.\n- If you pass in a custom stack string you need to include the message along with that.\n- Error properties will be included in `err.toString()`, but may be omitted by including `{ showProperties: false }` in the options.\n\n## License\n\nMIT\n\n\u003c!-- prettier-ignore-start --\u003e\n[downloads-image]: https://img.shields.io/npm/dm/plugin-error.svg?style=flat-square\n[npm-url]: https://www.npmjs.com/package/plugin-error\n[npm-image]: https://img.shields.io/npm/v/plugin-error.svg?style=flat-square\n\n[ci-url]: https://github.com/gulpjs/plugin-error/actions?query=workflow:dev\n[ci-image]: https://img.shields.io/github/workflow/status/gulpjs/plugin-error/dev?style=flat-square\n\n[coveralls-url]: https://coveralls.io/r/gulpjs/plugin-error\n[coveralls-image]: https://img.shields.io/coveralls/gulpjs/plugin-error/master.svg?style=flat-square\n\u003c!-- prettier-ignore-end --\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgulpjs%2Fplugin-error","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgulpjs%2Fplugin-error","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgulpjs%2Fplugin-error/lists"}