Skip to content

Commit e40af2a

Browse files
committed
📝 Add README.md
1 parent dcb0802 commit e40af2a

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

README.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Cloudflare Worker LeetCode Progress
2+
3+
> Generate LeetCode progress as a SVG deployed on Cloudflare Workers.
4+
5+
## Usage
6+
7+
```js
8+
9+
const createHandler = require('@momocow/cloudflare-worker-leetcode-progress').default
10+
const handleRequest = createHandler({ /* options */ });
11+
12+
addEventListener('fetch', (event) => {
13+
event.respondWith(handleRequest(event) ?? new Response('', { status: 405 }));
14+
});
15+
```
16+
17+
> Remember to configure your `wrangler.toml` to build with webpack.
18+
>
19+
> ```toml
20+
> type = "webpack"
21+
> ```

0 commit comments

Comments
 (0)