cache-content-type
TypeScript icon, indicating that this package has built-in type declarations

2.1.0 • Public • Published

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.

Readme

Keywords

Package Sidebar

Install

npm i cache-content-type

Weekly Downloads

2,987,830

Version

2.1.0

License

MIT

Unpacked Size

8.14 kB

Total Files

11

Last publish

Collaborators

  • dead_horse
  • fengmk2