Skip to content

Commit

Permalink
Fix readme
Browse files Browse the repository at this point in the history
  • Loading branch information
allevo committed Nov 8, 2023
1 parent 571710f commit 5705107
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# Cloudflare API library

[![Nodejs](https://github.com/oramasearch/cloudflare-api/actions/workflows/nodejs.yml/badge.svg)](https://github.com/oramasearch/cloudflare-api/actions/workflows/nodejs.yml)
![npm package minimized gzipped size (select exports)](https://img.shields.io/bundlejs/size/%40orama%2Fcloudflare-api)

This library is a wrapper around the Cloudflare API.

Expand All @@ -24,9 +23,9 @@ const ACCOUNT_ID = 'your-account-id'
const NAMESPACE_ID = 'your-namespace-id'
const workerKv = api.workerKv(ACCOUNT_ID, NAMESPACE_ID)

await workerKv.uploadKv('key', 'value')
await workerKv.getKv('key', 'value')
await workerKv.deleteKv('key', 'value')
await workerKv.uploadKv('key', 'value') // upload a value to the KV
await workerKv.getKv('key', 'text') // return the text representation of the value
await workerKv.deleteKv('key') // delete the value from the KV
```

## License
Expand Down

0 comments on commit 5705107

Please sign in to comment.