cache-content-type
Create a full Content-Type header given a MIME type or extension and cache the result
Last updated a year ago by fengmk2 .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm 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 Node.js Version PRs Welcome CodeRabbit Pull Request Reviews

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

License

MIT

Contributors

Contributors

Made with contributors-img.

Current Tags

  • 2.1.0                                ...           latest (a year ago)

4 Versions

  • 2.1.0                                ...           a year ago
  • 2.0.0                                ...           2 years ago
  • 1.0.1                                ...           8 years ago
  • 1.0.0                                ...           8 years ago
Maintainers (2)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (2)
Dependents (2)

Copyright 2013 - present © cnpmjs.org | Home |