
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
gh-description
Advanced tools
Set and get a GitHub repository description
npm install --save gh-description
or
npm install --global gh-description
const ghDescription = require('gh-description');
ghDescription('RichardLitt/gh-description');
//=> 'Set and get a GitHub repository description'
ghDescription('RichardLitt/gh-description', 'unicorns & rainbows');
//=> 'unicorns & rainbows'
Type: string
The name for the repository to test.
Type: string
The new description to set. To set, you must also supply the repoName first.
Type: bool or string
Specify a different endpoint for the GitHub URL. Useful for GitHub Enterprise.
Setting this flag as a boolean will automatically pull from the environmental variable GITHUB_ENDPOINT.
If using enterprise, the token must be explicitly set and cannot be passed through from the environment. This is to ensure that bad credentials from the public GitHub don't mess up the works.
Alias: e
Your GitHub access token, if not set as an env variable or supplied in the CLI.
The gh-description command uses ghauth to generate and locally store a GitHub API personal token.
You can skip this step by manually generating a token and setting it as an environment variable named GH_DESCRIPTION_TOKEN.
$ gh-description --help
Usage
$ gh-description [input]
Options
-e, --enterprise Specify a different GitHub endpoint
Examples
$ gh-description
Set and get a GitHub repository description
$ gh-description RichardLitt/gh-description
Set and get a GitHub repository description
$ gh-description RichardLitt/gh-description 'ponies and unicorns'
New description: ponies and unicorns
$ gh-description RichardLitt/gh-description -e
New enterprise description: Engage
$ gh-description RichardLitt/gh-description -e https://scottymcscottface.co.uk
New enterprise description: Beam Me Up
PRs and issues gladly accepted!
MIT © Richard Littauer
FAQs
Set and get a GitHub repository description
The npm package gh-description receives a total of 15 weekly downloads. As such, gh-description popularity was classified as not popular.
We found that gh-description demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.