<reponame>CMENDOZA1036/NewProjects<filename>.vscode-server/extensions/oderwat.indent-rainbow-8.3.1/node_modules/cache-content-type/index.js<gh_stars>0'use strict';

const mimeTypes = require('mime-types');
const LRU = require('ylru');

const typeLRUCache = new LRU(100);

module.exports = type => {
  let mimeType = typeLRUCache.get(type);
  if (!mimeType) {
    mimeType = mimeTypes.contentType(type);
    typeLRUCache.set(type, mimeType);
  }
  return mimeType;
};
