|
преди 1 година | |
---|---|---|
.. | ||
History.md | преди 1 година | |
README.md | преди 1 година | |
index.js | преди 1 година | |
package.json | преди 1 година |
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');