
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.
github-deployed-repos
Advanced tools
GitHub Deployed Repos is an npm package that retrieves all public repositories for a specified GitHub username and lists the URLs for the ones that are deployed (via GitHub Pages, or if the homepage URL is set in the repository).
package.json.You can install this package using npm:
npm install github-deployed-repos
To use this package, you simply need to require it and pass the GitHub username to fetch the deployed repositories.
// Import the getDeployedRepos function from the package
const { getDeployedRepos } = require('github-deployed-repos');
// Define the GitHub username
const username = 'your-github-username'; // Replace with the GitHub username you want to query
// Fetch and display deployed repositories
getDeployedRepos(username).then((deployedRepos) => {
console.log('Deployed Repositories:');
deployedRepos.forEach((repo) => {
console.log(`- ${repo.name}: ${repo.url}`);
});
}).catch((error) => {
console.error('Error fetching deployed repositories:', error);
});
Deployed Repositories:
- my-repo-1: https://my-repo-1.github.io
- my-repo-2: https://my-custom-domain.com
getDeployedRepos(username) makes a request to GitHub's API to fetch all public repositories of the user.homepage field in the package.json is set (this usually represents the deployment URL of the repository).homepage is found, it attempts to construct the GitHub Pages URL (https://<username>.github.io/<repo-name>).getDeployedRepos(username)Fetches deployed repositories for the given GitHub username.
Parameters:
username: The GitHub username (string) for which you want to fetch public repositories.Returns: A Promise that resolves to an array of objects, each representing a deployed repository:
[
{
"name": "repo-name",
"url": "https://deployed-url.com"
}
]
getDeployedRepos('MrSanjayRaj').then((repos) => console.log(repos));
If an error occurs (e.g., invalid username, GitHub API issues), the Promise will be rejected. You can handle it using .catch():
getDeployedRepos('invalid-username')
.then((repos) => console.log(repos))
.catch((error) => console.error('Error fetching deployed repositories:', error));
Contributions are welcome! Please open an issue or a pull request if you would like to contribute.
git checkout -b feature/new-feature).git commit -am 'Add a new feature').git push origin feature/new-feature).This project is licensed under the MIT License - see the LICENSE file for details.
Here is what you can expect when the function is called:
Deployed Repositories:
- Portfolio: https://MrSanjayRaj.github.io/portfolio
- Blog: https://myblog.com
FAQs
An npm package to display deployed URLs of public GitHub repositories
We found that github-deployed-repos demonstrated a not healthy version release cadence and project activity because the last version was released 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
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.