@@ -36,8 +36,6 @@ so open a PR there if you'd like to add mime types.
3636
3737## API
3838
39- <!-- eslint-disable no-unused-vars -->
40-
4139``` js
4240var mime = require (' mime-types' )
4341```
@@ -48,8 +46,6 @@ All functions return `false` if input is invalid or not found.
4846
4947Lookup the content-type associated with a file.
5048
51- <!-- eslint-disable no-undef -->
52-
5349``` js
5450mime .lookup (' json' ) // 'application/json'
5551mime .lookup (' .md' ) // 'text/markdown'
@@ -68,8 +64,6 @@ content-type, otherwise the given content-type is used. Then if the
6864content-type does not already have a ` charset ` parameter, ` mime.charset `
6965is used to get the default charset and add to the returned content-type.
7066
71- <!-- eslint-disable no-undef -->
72-
7367``` js
7468mime .contentType (' markdown' ) // 'text/x-markdown; charset=utf-8'
7569mime .contentType (' file.json' ) // 'application/json; charset=utf-8'
@@ -84,8 +78,6 @@ mime.contentType(path.extname('/path/to/file.json')) // 'application/json; chars
8478
8579Get the default extension for a content-type.
8680
87- <!-- eslint-disable no-undef -->
88-
8981``` js
9082mime .extension (' application/octet-stream' ) // 'bin'
9183```
@@ -94,8 +86,6 @@ mime.extension('application/octet-stream') // 'bin'
9486
9587Lookup the implied default charset of a content-type.
9688
97- <!-- eslint-disable no-undef -->
98-
9989``` js
10090mime .charset (' text/markdown' ) // 'UTF-8'
10191```
0 commit comments