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