Skip to content

Commit

Permalink
docs: update markdown examples
Browse files Browse the repository at this point in the history
  • Loading branch information
dougwilson committed Jul 25, 2017
1 parent 860ebcd commit e942f47
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ Lookup the content-type associated with a file.

```js
mime.lookup('json') // 'application/json'
mime.lookup('.md') // 'text/x-markdown'
mime.lookup('.md') // 'text/markdown'
mime.lookup('file.html') // 'text/html'
mime.lookup('folder/file.js') // 'application/javascript'
mime.lookup('folder/.htaccess') // false
Expand Down Expand Up @@ -81,7 +81,7 @@ mime.extension('application/octet-stream') // 'bin'
Lookup the implied default charset of a content-type.

```js
mime.charset('text/x-markdown') // 'UTF-8'
mime.charset('text/markdown') // 'UTF-8'
```

### var type = mime.types[extension]
Expand Down

0 comments on commit e942f47

Please sign in to comment.