ext-list
Version:
List of known file extensions and their MIME types
32 lines (17 loc) • 641 B
Markdown
# ext-list [](https://travis-ci.org/kevva/ext-list)
> Return a list of known [file extensions](http://svn.apache.org/repos/asf/httpd/httpd/trunk/docs/conf/mime.types) and their MIME types
## Install
```
$ npm install ext-list
```
## Usage
```js
const extList = require('ext-list');
extList();
//=> Map {'123' => 'application/vnd.lotus-1-2-3', 'ez' => 'application/andrew-inset', ...}
```
## API
### extList()
Returns a `Map` with the extensions as keys and their content types as values.
## License
MIT © [Kevin Mårtensson](https://github.com/kevva)