Skip to content

Commit

Permalink
docs: add example of type from full path
Browse files Browse the repository at this point in the history
closes #15
  • Loading branch information
dougwilson committed Mar 14, 2015
1 parent 1c6d55d commit a8591bc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Expand Up @@ -57,6 +57,9 @@ Create a full content-type header given a content-type or extension.
```js
mime.contentType('markdown') // 'text/x-markdown; charset=utf-8'
mime.contentType('file.json') // 'application/json; charset=utf-8'

// from a full path
mime.contentType(path.extname('/path/to/file.json')) // 'application/json; charset=utf-8'
```

### mime.extension(type)
Expand Down

0 comments on commit a8591bc

Please sign in to comment.