diff --git a/CHANGELOG.md b/CHANGELOG.md index 6ad7130..f8fe474 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 2.0.1 + +* Updated README.md example + ## 2.0.0 * Updated methods to maintain consistencty from Database diff --git a/README.md b/README.md index c5c08c1..52fb3ec 100644 --- a/README.md +++ b/README.md @@ -2,8 +2,8 @@ Mime Types for Dart and Flutter ## Features -- Get Mime Type from Extension -- Get Extension Name from Mime Type +- Get Mime Types from Extension +- Get Extensions Name from Mime Type ## Usage @@ -11,13 +11,18 @@ Mime Types for Dart and Flutter import 'package:mime_dart/mime_dart.dart'; void main(List args) { - print(Mime.getExtensionFromType('application/pdf')); - // returns `pdf` +print(Mime.getExtensionsFromType('application/xml')); + // returns `[xml, xsl, xsd, rng]` - print(Mime.getTypeFromExtension('pdf')); - // returns `application/pdf` + print(Mime.getTypesFromExtension('xml')); + // returns `[application/xml, text/xml]` - print(Mime.getMime('application/pdf')); - // returns MimeData(charset: null, source: iana, compressible: false, extensions: [pdf]) + print(Mime.getMimeData('application/xml')); + // returns MimeData( + // charset: null, + // source: iana, + // compressible: true, + // extensions: [xml, xsl, xsd, rng], + // ); } ``` diff --git a/pubspec.yaml b/pubspec.yaml index e47a99c..ca89cb5 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: mime_dart -description: Mime Types for Dart and Flutter. -version: 2.0.0 +description: Get Mime Types, Extensions, Compressible for Dart and Flutter. Inspired from IANA Databse +version: 2.0.1 homepage: https://github.com/niteshsh4rma/mime_dart environment: