content_type 0.5.3 copy "content_type: ^0.5.3" to clipboard
content_type: ^0.5.3 copied to clipboard

Dart 1 only

Useful when you need to deal with content types (mime types).

Content-Type #

Note: You should probably use the MIME library instead: http://pub.dartlang.org/packages/mime

A simple utility to retrieve the content-type for a filename.

Examples #

import 'package:content_type/content_type.dart';

main() {
  print(getContentType(filename: 'foobarbaz.html'); // text/html
}

License #

This library is licensed under MIT.

0
likes
15
points
27
downloads

Publisher

unverified uploader

Weekly Downloads

Useful when you need to deal with content types (mime types).

License

MIT (license)

Dependencies

unittest

More

Packages that depend on content_type