UNPKG
ryuudb
Version:
latest (1.0.0)
1.0.0
A lightweight, customizable JSON/YAML database for Node.js by Jr Busaco
ryuudb
/
src
/
adapters
/
memory.js
14 lines
(11 loc)
•
166 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
export
class
MemoryAdapter
{
constructor
() {
this
.
data
= {}; } async read() {
return
this
.
data
; } async write(
data
) {
this
.
data
=
data
; } }