cache-content-type
Create a full Content-Type header given a MIME type or extension and cache the result
Last updated 5 months ago by fengmk2 .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install cache-content-type 
SYNC missed versions from official npm registry.

cache-content-type

NPM version Node.js CI Test coverage Known Vulnerabilities npm download

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

Install

npm i cache-content-type

Usage

import { getType } from 'cache-content-type';

const contentType = getType('html');
assert.equal(contentType, 'text/html; charset=utf-8');

Current Tags

  • 2.0.0                                ...           latest (5 months ago)

3 Versions

  • 2.0.0                                ...           5 months ago
  • 1.0.1                                ...           6 years ago
  • 1.0.0                                ...           6 years ago
Maintainers (2)
Downloads
Total 1
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (2)
Dev Dependencies (11)

© 2010 - cnpmjs.org x YWFE | Home | YWFE