diff --git a/vault.js b/vault.js index e899cce..fe85b85 100644 --- a/vault.js +++ b/vault.js @@ -1,4 +1,20 @@ -'use strict'; +"use strict"; module.exports = function() { - -}; \ No newline at end of file + let myVault = {}; + function setValue(key, value) { + myVault[key] = value; + } + + function getValue(key) { + if (!key || !myVault[key]) { + return null; + } else if (myVault[key]) { + return myVault[key]; + } + } + + return { + setValue: setValue, + getValue: getValue + }; +};