All Projects → khellang → Mimetypes

khellang / Mimetypes

Licence: apache-2.0
A simple lookup from file name/extension to MIME/media type, generated from mime-db, which in turn is compiled from IANA, Apache and nginx's MIME types.

Projects that are alternatives of or similar to Mimetypes

Puppet Cassandra
Installs Cassandra & DataStax Agent on RHEL/Ubuntu/Debian.
Stars: ✭ 13 (-64.86%)
Mutual labels:  puppet
Awaseroot
http://awaseroot.wordpress.com
Stars: ✭ 28 (-24.32%)
Mutual labels:  puppet
Web development vm how to
Instructions and scripts to quickly set up development and production environments for PHP, Nginx, and MySQL based infrastructure.
Stars: ✭ 31 (-16.22%)
Mutual labels:  puppet
Fuel Plugin Detach Rabbitmq
MOVED: now at https://opendev.org/x/fuel-plugin-detach-rabbitmq
Stars: ✭ 14 (-62.16%)
Mutual labels:  puppet
Puppet Project config
MOVED: Now at https://opendev.org/opendev/puppet-project_config
Stars: ✭ 20 (-45.95%)
Mutual labels:  puppet
Fuel Plugin Neutron Lbaas
Fuel plugin for LBaaS for Neutron
Stars: ✭ 30 (-18.92%)
Mutual labels:  puppet
Monarch
Rule over hierarchical data!
Stars: ✭ 12 (-67.57%)
Mutual labels:  puppet
Puppet Mongodb
This module manages mongodb services. It provides the functions for sharding, mongod and mongos instances.
Stars: ✭ 34 (-8.11%)
Mutual labels:  puppet
Puppet Gerritbot
MOVED: Now at https://opendev.org/opendev/puppet-gerritbot
Stars: ✭ 20 (-45.95%)
Mutual labels:  puppet
Puppet Openldap
LDAP Configuration Management Module for Puppet
Stars: ✭ 30 (-18.92%)
Mutual labels:  puppet
Puppet Autossh
MOVED: now at https://opendev.org/x/puppet-autossh
Stars: ✭ 14 (-62.16%)
Mutual labels:  puppet
Puppetlabs Debbuilder
Module to build a debian package builder
Stars: ✭ 14 (-62.16%)
Mutual labels:  puppet
Puppet Puppetexplorer
Puppet module for installing Puppet Explorer
Stars: ✭ 30 (-18.92%)
Mutual labels:  puppet
Puppet Syncthing
Syncthing module for Puppet
Stars: ✭ 13 (-64.86%)
Mutual labels:  puppet
Percona Cluster
Percona XtraDB Cluster test
Stars: ✭ 32 (-13.51%)
Mutual labels:  puppet
Runyer
Stars: ✭ 12 (-67.57%)
Mutual labels:  puppet
Puppet Windowsfeature
Library that uses ServerAdministration api that comes with Windows Server 2008 and Windows Server 2012 to add / remove windows features
Stars: ✭ 29 (-21.62%)
Mutual labels:  puppet
Puppet Sysctl
Puppet module to manage sysctl parameters
Stars: ✭ 35 (-5.41%)
Mutual labels:  puppet
Puppet Puppet
100% free range, organic, pesticide free Puppet module for managing Puppet
Stars: ✭ 33 (-10.81%)
Mutual labels:  puppet
Puppet Wordpress
Puppet module to set up an instance of wordpress
Stars: ✭ 30 (-18.92%)
Mutual labels:  puppet

MimeTypes

A simple lookup from file name/extension to MIME/media type, generated from mime-db, which in turn is compiled from IANA, Apache and nginx's MIME types.

Installation

The easiest way to get it, is to install the source package from NuGet.org.

Otherwise you could just pull the source file from GitHub.

Usage

Get the MIME/media type for a file name/extension by using the MimeTypes.GetMimeType method:

MimeTypes.GetMimeType("awesome-file.json"); // "application/json"

If a mapping for the given file extension doesn't exist, it will fall back to MimeTypes.FallbackMimeType, which is set to application/octet-stream by default.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].