-
Notifications
You must be signed in to change notification settings - Fork 27
/
package-use-fireproof.json
39 lines (39 loc) · 1.43 KB
/
package-use-fireproof.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
{
"name": "use-fireproof",
"version": "must-set",
"description": "Fireproof live ledger, JavaScript API and React hooks",
"type": "module",
"module": "./index.js",
"main": "./index.cjs",
"browser": "./index.global.js",
"types": "./index.d.ts",
"homepage": "https://use-fireproof.com",
"repository": {
"type": "git",
"url": "git+https://github.com/fireproof-storage/fireproof.git"
},
"bugs": {
"url": "https://github.com/fireproof-storage/fireproof/issues"
},
"exports": {
".": {
"import": "./index.js",
"require": "./index.cjs",
"script": "./index.global.js",
"types": "./index.d.ts"
}
},
"scripts": {},
"author": "J Chris Anderson",
"license": "Apache-2.0 OR MIT",
"gptdoc": "Fireproof/React/Usage: import { useLiveQuery, useDocument } from 'use-fireproof'; function App() { const result = useLiveQuery(doc => doc.word, { limit: 10 }); const [{ count }, setDoc, saveDoc] = useDocument({_id: 'count', count: 0}); return (<><p>{count} changes</p><input type='text' onChange={() => saveDoc({count: count + 1})} onSubmit={e => useLiveQuery.ledger.put({word: e.target.value})} /><ul>{result.map(row => (<li key={row.id}>{row.key}</li>))}</ul></>)}",
"dependencies": {
"react": "from-package-json",
"@fireproof/core": "from-package-json"
},
"peerDependencies": {
"react": ">=18.0.0"
},
"devDependencies": {},
"keywords": ["react", "ledger", "json", "live", "sync"]
}