var cards = require('./cards.js'); let hahah = { attack: 5 } cards.insert('testcard', hahah); cards.getByID('testcard').then(console.log);