const fn = function()

in src/providers/memory.js [12:34]


  const fn = function(req, pathname) {
    pathname = decodeURI(pathname);

    if (!options.store[pathname]) {
      return Promise.resolve(null);
    }

    const content = options.store[pathname];

    const stream = new Readable();
    stream.push(content);
    stream.push(null);

    const hash = crypto.createHash("md5");
    hash.update(content);

    return Promise.resolve({
      modified: options.modified || null,
      stream: stream,
      size: content.length,
      etag: hash.digest("hex")
    });
  };