Skip to content

Commit

Permalink
fix typo in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
good-lly committed May 27, 2024
1 parent 5521a1c commit 602b24e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@ While Cloudflare R2 operates on a strongly consistent model ([reference](https:/
```js
import lowstorage from 'lowstorage';
// Initialize object and get users collection
const usersCol = await lowstorage(env, 'MY_TESTING_BUCKET').collection('users');
const storage = new lowstorage(env, 'MY_TESTING_BUCKET');
const userCol = storage.collection('users');

// or just const userCol = new lowstorage(env, 'MY_TESTING_BUCKET').collection('users')

// Add new user
// you can provide _id or it will be generated as crypto.randomUUID(); -> https://developers.cloudflare.com/workers/runtime-apis/web-crypto/
Expand Down

0 comments on commit 602b24e

Please sign in to comment.