UNPKG
@gameroom/kit
Version:
latest (1.3.3)
1.3.3
1.3.2
1.3.1
1.3.0
1.2.0
1.1.19
1.1.18
1.1.17
1.1.16
1.1.15
1.1.14
1.1.13
1.1.12
1.1.11
1.1.10
1.1.9
1.1.8
1.1.7
1.1.6
1.1.5
1.1.4
1.1.3
1.1.2
1.1.1
1.1.0
1.0.6
1.0.5
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0
0.3.12
0.3.11
0.3.10
0.3.9
0.3.8
0.3.7
0.3.6
0.3.5
0.3.4
0.3.3
0.3.2
0.3.1
0.3.0
0.0.0
Node kit for the Gameroom API
@gameroom/kit
/
src
/
helpers
/
getCount.js
9 lines
(7 loc)
•
147 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
const
{ models: { Counter } } = require(
'../store'
) module.exports =
async
() => {
const
result =
await
Counter.
get
()
return
result.count }