
Security News
ECMAScript 2025 Finalized with Iterator Helpers, Set Methods, RegExp.escape, and More
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
github.com/golift/badgedata
Simple Go library to collect remote data for use as badgen badge source data.
go get golift.io/badgedata
Simple example to show how to use it. You should put this library into your own web server code and give it a handler path you prefer. Has a simple pluggable structure to make creating new data sources simple. Contains one example for caching Grafana dashboard download counts.
package main
import (
"net/http"
"golift.io/badgedata"
_ "golift.io/badgedata/grafana"
)
func main() {
http.Handle("/bd/", badgedata.Handler())
if err := http.ListenAndServe(":8080", nil); err != nil {
log.Fatal(err)
}
}
Currently only does one thing.
curl http://127.0.0.1:8080/bd/grafana/dashboard-count/10418,10417,10416,10415
Replace the numbers with IDs of dashboards on Grafana.com you want download counts for.
FAQs
Unknown package
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
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
Security News
A new Node.js homepage button linking to paid support for EOL versions has sparked a heated discussion among contributors and the wider community.
Research
North Korean threat actors linked to the Contagious Interview campaign return with 35 new malicious npm packages using a stealthy multi-stage malware loader.