cache-content-type

1.0.1 • Public • Published

cache-content-type

The same as mime-types's contentType method, but with result cached.

Install

npm i cache-content-type

Usage

const getType = require('cache-content-type');
const contentType = getType('html');
assert(contentType === 'text/html; charset=utf-8');

/cache-content-type/

    Package Sidebar

    Install

    npm i cache-content-type

    Weekly Downloads

    1,387,975

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    2.06 kB

    Total Files

    4

    Last publish

    Collaborators

    • dead_horse