diff --git a/lib/nomem.js b/lib/nomem.js new file mode 100644 index 00000000..54dd44fd --- /dev/null +++ b/lib/nomem.js @@ -0,0 +1,11 @@ +function Nomem(){ + var opt = {}, u; + opt.put = function(file, data, cb){ cb(null, -9) }; // dev/null! + opt.get = function(file, cb){ cb(null) }; + return opt; +} +if(typeof window !== "undefined"){ + window.Nomem = Nomem; +} else { + try{ module.exports = Nomem }catch(e){} +} \ No newline at end of file