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');

    Install

    npm i cache-content-type

    DownloadsWeekly Downloads

    1,078,035

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    2.06 kB

    Total Files

    4

    Last publish

    Collaborators

    • dead_horse