Skip to content

Commit

Permalink
how to use
Browse files Browse the repository at this point in the history
  • Loading branch information
kobe-koto committed Oct 15, 2022
1 parent 60018e2 commit 76f5a96
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 20 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Counter based on Cloudflare Workers & KV

## TL;DW ~~(Too Long, Don't write.)~~

1. bind KV as a variable "CounterSpace".
2. use it follow down below.

## How to use?

just add these parameter

- `?visitor` returns total visitor count.
- `?hit` returns total hits count.
- `?text=...(your encoded words)...` returns a replaced text (encode your words using `btoa(encodeURI("some s*ck words"))`).

### about `?text=...(your encoded words)...`

- `@CounterByKoto_Visitors` will replace to total VISITORS count.
- `@CounterByKoto_Hits` will replace to total HITS count.
- `@CounterByKoto_NameSpace` will replace to total NAMESPACE.

0 comments on commit 76f5a96

Please sign in to comment.