cache-content-type
Create a full Content-Type header given a MIME type or extension and catch the result
Last updated 7 years ago by dead_horse .
MIT · Repository · Bugs · Original npm
$ cnpm install cache-content-type 
SYNC missed versions from official npm registry.

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

Current Tags

  • 1.0.1                                ...           latest (7 years ago)

1 Versions

  • 1.0.1                                ...           7 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (2)
Dev Dependencies (5)
Dependents (0)
None

Copyright 2013 - present © cnpmjs.org