![require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages](https://cdn.sanity.io/images/cgdhsj6q/production/be8ab80c8efa5907bc341c6fefe9aa20d239d890-1600x1097.png?w=400&fit=max&auto=format)
Security News
require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
@seveibar/prune-github-notifications
Advanced tools
Prunes GitHub notifications you don't care about, such as automated dependency bumps. 🧹
Prunes GitHub notifications you don't care about, such as automated dependency bumps. 🧹
prune-github-notifications
can be run on the CLI with an auth token for notifications access:
npx prune-github-notifications
Option | Type | Default | Description |
---|---|---|---|
--auth | string | process.env.GH_TOKEN or executing gh auth token | Auth token for GitHub from octokit-from-auth . |
--bandwidth | number | 6 | Maximum parallel requests to start at once. |
--reason | string[] | ["subscribed"] | Notification reason(s) to filter to. |
--title | string[] | ["^chore\(deps\): update .+ to", /^build\(deps-dev\): bump .+ to"] | Notification title regular expressions to filter to. |
--watch | number | 0 | A seconds interval to continuously re-run this on, if truthy. |
--author | string[] | - | Usernames to ignore notifications from when reason is "author". |
--botAuthor | boolean | false | Ignore notifications from any authors with "[bot]" in their name |
--verbose | boolean | false | Print information while processing notifications |
For example, providing all functional options on the CLI:
npx prune-github-notifications --bandwidth 10 --reason subscribed --title "^chore.+ update .+ to"
Running in watch mode to clear notifications every ten seconds:
npx prune-github-notifications --watch 10
npm i prune-github-notifications
import { pruneGitHubNotifications } from "prune-github-notifications";
await pruneGitHubNotifications({ auth: "gho_..." });
If a process.env.GH_TOKEN
is set, then the auth
parameter will default to it:
await pruneGitHubNotifications();
Only auth
is required, and only if a GH_TOKEN
isn't available.
Option | Type | Default | Description |
---|---|---|---|
auth | string | process.env.GH_TOKEN | GitHub authentication token with notifications access. |
bandwidth | number | 6 | Maximum parallel requests to start at once. |
reason | Set<string> | Set {"subscribed"} | Notification reason(s) to filter to. |
title | RegExp[] | [/^chore\(deps\): update .+ to/, /^build\(deps-dev\): bump .+ to/] | Notification title regular expressions to filter to. |
For example, providing all options to the Node.js API:
await pruneGitHubNotifications({
auth: "gho_...",
bandwidth: 10,
reason: subscribed,
title: ["^chore.+ update .+ to"],
});
See .github/CONTRIBUTING.md
, then .github/DEVELOPMENT.md
.
Thanks! 💖
Josh Goldberg 🔧 🚧 🤔 💻 🐛 |
💙 This package was templated with
create-typescript-app
.
FAQs
Prunes GitHub notifications you don't care about, such as automated dependency bumps. 🧹
The npm package @seveibar/prune-github-notifications receives a total of 1,462 weekly downloads. As such, @seveibar/prune-github-notifications popularity was classified as popular.
We found that @seveibar/prune-github-notifications demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.