|
há 1 ano atrás | |
---|---|---|
.. | ||
History.md | há 1 ano atrás | |
README.md | há 1 ano atrás | |
index.js | há 1 ano atrás | |
package.json | há 1 ano atrás |
The same as mime-types's contentType method, but with result cached.
npm i cache-content-type
const getType = require('cache-content-type');
const contentType = getType('html');
assert(contentType === 'text/html; charset=utf-8');