Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Merge pull request #3 from ArtskydJ/patch-1

Improved readme code example
  • Loading branch information...
commit 2b48f477a774976ede5f056bef22ded91850e094 2 parents 803d451 + f2765a3
@creationix authored
Showing with 5 additions and 3 deletions.
  1. +5 −3 README.markdown
8 README.markdown
@@ -15,9 +15,11 @@ If you choose to not use npm, or can't use it in your environment, then simply c
Simply load this library, configure your fallback mime type, and query it for the mime type of various filenames.
- var getMimeType = require('mime')('application/octect-stream');
- var file = "/bar/foo/baz.mp3";
- var type = getMimeType(file);
+var getMimeType = require('simple-mime')('application/octet-stream');
+var file = '/bar/foo/baz.mp3';
+var type = getMimeType(file); // => 'audio/mpeg'
## Goal
Please sign in to comment.
Something went wrong with that request. Please try again.