Package Exports
- @momocow/cloudflare-worker-leetcode-progress
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@momocow/cloudflare-worker-leetcode-progress) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Cloudflare Worker LeetCode Progress
Generate LeetCode progress as a SVG deployed on Cloudflare Workers.
Usage
const createHandler = require('@momocow/cloudflare-worker-leetcode-progress').default
const handleRequest = createHandler({ /* options */ });
addEventListener('fetch', (event) => {
event.respondWith(handleRequest(event) ?? new Response('', { status: 405 }));
});Remember to configure your
wrangler.tomlto build with webpack.type = "webpack"