Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/sshaw/file_groups
- Owner: sshaw
- License: mit
- Created: 2020-05-02T21:01:19.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-02-13T21:42:08.000Z (almost 4 years ago)
- Last Synced: 2024-04-25T12:02:02.516Z (8 months ago)
- Topics: blacklist, content-type, file-extensions, javascript, json, media-types, mime-types, ruby, whitelist
- Language: HTML
- Homepage:
- Size: 61.5 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
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).