mime_type_extension 0.0.2 copy "mime_type_extension: ^0.0.2" to clipboard
mime_type_extension: ^0.0.2 copied to clipboard

Convert extension to mime type and mime type to extension and return it as String, Support 600+ types.

Use this package as a library

Depend on it

Run this command:

With Dart:

 $ dart pub add mime_type_extension

With Flutter:

 $ flutter pub add mime_type_extension

This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):

dependencies:
  mime_type_extension: ^0.0.2

Alternatively, your editor might support dart pub get or flutter pub get. Check the docs for your editor to learn more.

Import it

Now in your Dart code, you can use:

import 'package:mime_type_extension/mime_type_extension.dart';
3
likes
160
points
40
downloads

Publisher

unverified uploader

Weekly Downloads

Convert extension to mime type and mime type to extension and return it as String, Support 600+ types.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

More

Packages that depend on mime_type_extension