Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/sshaw/file_groups

Common file extensions and media types, grouped by application and type
https://github.com/sshaw/file_groups

blacklist content-type file-extensions javascript json media-types mime-types ruby whitelist

Last synced: 8 days ago
JSON representation

Common file extensions and media types, grouped by application and type

Awesome Lists containing this project

README

        

# File Groups

File extensions and media types, grouped by application and type. Useful when you need to process or restrict processing to certain types of files.

The groups are defined in `file_groups.json`.

## Programming Language Libraries

* [JavaScript](js)
* [Perl](perl)
* [Ruby](ruby)

These are generated automatically. See [Generating](#generating).

For usage see the README in the given language's directory.

### Generating

Generating a library requires [Ruby](https://www.ruby-lang.org/) to be installed and
an [ERB template](https://en.wikipedia.org/wiki/ERuby) for the given language.

To generate a library run the following from the project's root directory:
```
./generate.sh language_directory
```

Where `language_directory` is the desired programming language's directory.
This must contain a file named `template.erb` which is used to generate the source code.

## Groups

Each category and its tags (if any) contain file extensions and media types.

| Category | Tags |
|--------------------|-----------------------------------------------------------|
| Audio | |
| Diagramming | |
| Document | PDF + tags from Presentation, Spreadsheet, Word Processor |
| Graphics Editor | Raster, Vector |
| Image | Raster, Vector, Web |
| Presentation | Impress, Keynote, PowerPoint |
| Project Management | |
| Spreadsheet | Calc, Excel, Numbers, CSV |
| Video | |
| Word Processor | Word, Word Perfect, Pages, Writer |

## Author

Skye Shaw (skye.shaw -AT- gmail)

## License

The is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).