-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
count #1530
Comments
@Dinesh-470 thanks for the idea. Let me put some thought into this. Since this is just a simple markdown file this might me a little challenging |
yaa, we can do you want me to create it and create a PR |
@dineshreddypaidi I don't think that's a robust solution. Maybe try something like this: async function countPortfolios() {
let response = await fetch('https://github.com/emmabostian/developer-portfolios/raw/refs/heads/master/README.md');
let content = await response.text();
let count = (content.match(/^- \[/gm) || []).length;
return count
} or curl -s https://raw.githubusercontent.com/emmabostian/developer-portfolios/master/README.md | grep -c "^- \[" > count.txt
echo "Last updated: $(date -u)" >> count.txt |
@dineshreddypaidi and @CR072, thanks for your input I created a pre-commit hook on my local machine to update the new banner. The count will be updated weekly when I update any broken links. This is not perfect, but based on my current permissions to manage this repo, it works for now. |
add the count of developer portfolios links so we will know how many developers are out there ..
a rough idea for portfolio sites..
at the top of the list
The text was updated successfully, but these errors were encountered: