mime

A comprehensive library for mime-type mapping
util mime


Summary

Project Name mime Project Url https://github.com/broofa/node-mime#readme
InceptionYear 2011-01-20 16:27:31 更新时间 2019-05-15 22:07:40
IssueManagement https://github.com/broofa/node-mime/issues Licenses MIT
仓库地址 git+https://github.com/broofa/node-mime.git 用户数 139
Node Engine >=4.0.0 文件大小 20.4 KB
install prepare release benchmark md test

项目介绍

# Mime A comprehensive, compact MIME type module. [![Build Status](https://travis-ci.org/broofa/node-mime.svg?branch=master)](https://travis-ci.org/broofa/node-mime) ## Version 2 Notes Version 2 is a breaking change from 1.x as the semver implies. Specifically: * `lookup()` renamed to `getType()` * `extension()` renamed to `getExtension()` * `charset()` and `load()` methods have been removed If you prefer the legacy version of this module please `npm install mime@^1`. Version 1 docs may be found [here](https://github.com/broofa/node-mime/tree/v1.4.0). ## Install ### NPM ``` npm install mime ``` ### Browser It is recommended that you use a bundler such as [webpack](https://webpack.github.io/) or [browserify](http://browserify.org/) to package your code. However, browser-ready versions are available via wzrd.in. E.g. For the full version:

开发依赖

GroupId ArtifactID Version 引用量
Mathias Bynens benchmark 2.1.4 2791
qix chalk 3.0.0 59866
Nicholas C. Zakas eslint 6.6.0 168077
dougwilson mime-db 1.42.0 262
Robert Kieffer mime-score 1.1.2 1
dougwilson mime-types 2.1.25 1960
Robert Kieffer runmd 1.2.0 12
Ben Coe standard-version 7.0.1 7155