{"id":13447059,"url":"https://github.com/micromata/cli-error-notifier","last_synced_at":"2026-01-23T06:53:48.835Z","repository":{"id":28695828,"uuid":"119104716","full_name":"micromata/cli-error-notifier","owner":"micromata","description":"Sends native desktop notifications if CLI apps fail","archived":false,"fork":false,"pushed_at":"2023-07-19T22:29:02.000Z","size":881,"stargazers_count":72,"open_issues_count":9,"forks_count":3,"subscribers_count":11,"default_branch":"master","last_synced_at":"2025-09-26T00:22:58.115Z","etag":null,"topics":["cli","cli-apps","cli-error-notifier","desktop-notifications","error-handling","node-js","node-notifier","notification-center","notifier","notify","npm-scripts","watch-files"],"latest_commit_sha":null,"homepage":"https://labs.micromata.de","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/micromata.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,"governance":null,"roadmap":null,"authors":null}},"created_at":"2018-01-26T21:22:56.000Z","updated_at":"2025-03-21T11:14:26.000Z","dependencies_parsed_at":"2024-01-02T23:42:18.423Z","dependency_job_id":"c90ae484-f1e4-468f-88b6-accd4cc088ec","html_url":"https://github.com/micromata/cli-error-notifier","commit_stats":{"total_commits":72,"total_committers":6,"mean_commits":12.0,"dds":0.2222222222222222,"last_synced_commit":"7ec57c34e5b70e5c10701cb9bec0d01817cac0b8"},"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"purl":"pkg:github/micromata/cli-error-notifier","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/micromata%2Fcli-error-notifier","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/micromata%2Fcli-error-notifier/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/micromata%2Fcli-error-notifier/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/micromata%2Fcli-error-notifier/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/micromata","download_url":"https://codeload.github.com/micromata/cli-error-notifier/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/micromata%2Fcli-error-notifier/sbom","scorecard":{"id":642965,"data":{"date":"2025-08-11","repo":{"name":"github.com/micromata/cli-error-notifier","commit":"7ec57c34e5b70e5c10701cb9bec0d01817cac0b8"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.5,"checks":[{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":1,"reason":"Found 3/17 approved changesets -- score normalized to 1","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":3,"reason":"dependency not pinned by hash detected -- score normalized to 3","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/micromata/cli-error-notifier/main.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/micromata/cli-error-notifier/main.yml/master?enable=pin","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned","Info:   1 out of   1 npmCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/main.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: license:0","Info: FSF or OSI recognized license: MIT License: license:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 18 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":4,"reason":"6 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-j8xg-fqg3-53r7"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-21T11:19:30.075Z","repository_id":28695828,"created_at":"2025-08-21T11:19:30.075Z","updated_at":"2025-08-21T11:19:30.075Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28682263,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-23T05:48:07.525Z","status":"ssl_error","status_checked_at":"2026-01-23T05:48:07.129Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["cli","cli-apps","cli-error-notifier","desktop-notifications","error-handling","node-js","node-notifier","notification-center","notifier","notify","npm-scripts","watch-files"],"created_at":"2024-07-31T05:01:07.114Z","updated_at":"2026-01-23T06:53:48.817Z","avatar_url":"https://github.com/micromata.png","language":"JavaScript","funding_links":[],"categories":["JavaScript","Packages","Other Utilities"],"sub_categories":["Other","Utility Packs"],"readme":"[![npm version](https://img.shields.io/npm/v/cli-error-notifier.svg?style=flat)](https://www.npmjs.org/package/cli-error-notifier)\n[![Coverage](https://codecov.io/gh/micromata/cli-error-notifier/badge.svg?branch=master)](https://codecov.io/gh/micromata/cli-error-notifier?branch=master)\n\n# cli-error-notifier\n\n\u003e Sends native desktop notifications if CLI apps fail\n\n*Technically: if a command exits with an exit code other than `0`*\n\n## Install\n\nTo use it in your project:\n```\n$ npm install --save-dev cli-error-notifier\n```\n\nTo use it globally:\n```\n$ npm install --global cli-error-notifier\n```\n\n*It requires Node.js (v4 or greater).*\n\n## General usage\n\n```\n$ onerror --help\n\n  Sends native desktop notifications if CLI apps fail\n\n\tUsage\n\t  $ onerror \u003ccommand\u003e [options]\n\n\tOptions\n\t  --title,   -t   Sets the title of the notification.\n\t                  Default: \"An error has occured\"\n\t  --message, -m   Sets the message body of the notification.\n\t                  Default: \"Check the terminal for more information\"\n\t  --icon,    -i   Sets an icon. Can be any absolute path.\n\t  --sound,   -s   Defines which sound to use.\n\t                  Use \"mute\" to disable default sound notification.\n\t                  Options: Mute, Basso, Blow, Bottle, Frog, Funk, Glass, Hero,\n\t                           Morse, Ping, Pop, Purr, Sosumi, Submarine, Tink\n\t                  Default: Bottle\n\t  --version  -v   Displays the version number.\n\t  --help     -h   Displays the help.\n\n\tExamples\n\t  $ onerror \"wget unknown-host.xyz\"\n\t  $ onerror \"wget unknown-host.xyz\" -s mute\n\t  $ onerror \"wget unknown-host.xyz\" -t Error -m \"My error message\"\n\t  $ onerror \"wget unknown-host.xyz\"  -s Glass -i https://cdn.rawgit.com/npm/logos/31945b5c/npm%20square/n-64.png\n```\n\n## Usage with npm scripts\n\nThis little CLI comes in handy when writing build scripts.\n\nLet’s imagine you have setup the following npm script for linting your JavaScript files:\n\n```json\n{\n  \"scripts\": {\n    \"eslint\": \"eslint src\",\n  }\n}\n```\n\nWith using cli-error-notifier a desktop notification can be generated at the moment the linting fails:\n\n```json\n{\n  \"scripts\": {\n    \"eslint\": \"onerror \\\"eslint src\\\"\",\n  }\n}\n```\n\nThis is especially useful for watching files while developing. You could use it in conjunction with [onchange](https://github.com/Qard/onchange) like in the following example:\n\n```json\n{\n  \"scripts\": {\n    \"eslint\": \"eslint src\",\n    \"eslint:fix\": \"npm run eslint --silent -- --fix\",\n    \"eslint:watch\": \"onchange \\\"src/**/*.js\\\" -- onerror \\\"npm run eslint --silent\\\"\"\n  }\n}\n```\n\nIt also works flawlessly together with [npm-run-all](https://github.com/mysticatea/npm-run-all).\n\n## Cross platform compatibility\ncli-error-notifier uses the brilliant [node-notifier](https://github.com/mikaelbr/node-notifier) and therefore should work with Notification Center for macOS, notify-osd/libnotify-bin for Linux, Toasters for Windows 8/10, or taskbar Balloons for earlier Windows versions. Growl is used if none of these requirements are met.\n\n## Related\n\n* [onchange](https://github.com/Qard/onchange) - Watch files and folders and run a command when anything is changed.\n* [npm-run-all](https://github.com/mysticatea/npm-run-all) - CLI tool to run multiple npm-scripts in parallel or serial.\n\n\n## License\n\nMIT © [Michael Kühnel](https://micromata.de)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmicromata%2Fcli-error-notifier","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmicromata%2Fcli-error-notifier","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmicromata%2Fcli-error-notifier/lists"}