A Cloudflare Worker that fetches and caches the templates from github/gitignore.
Status: archived. Made in 2021, not maintained, and no longer deployed.
It uses the old wrangler.toml format (type = "javascript"), so it needs Wrangler 1 or some updating for current Wrangler.
cp wrangler.toml.example wrangler.toml # add your account ID from `wrangler whoami`
wrangler secret put OAUTH_TOKEN # a GitHub token, to avoid API rate limits
wrangler devindex.jsis the whole worker./returns the list of.gitignorefiles in the repo, as JSON from the GitHub API./Node.gitignore, or any other template name, returns that file fromraw.githubusercontent.com.- Responses are cached at Cloudflare's edge for a day.