Skip to content

limitedeternity/MimeDetect

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MimeDetect

MIME-type detector


MimeDetect is an experiment on writing a Node-module with Rust (using neon-bindings) and wrapping everything up into an Electron application.

Usage is pretty straightforward: you drop a file — you get its MIME-type. You can also drop multiple files or even a folder.

MimeDetect under the hood uses the infer module to check file’s MIME-type by one's byte signature. If the infer fails, the module falls back to checking MIME-type by file’s extension against mime-db.


Screenshot

Screenshot at May 19 19-45-40

Building

To set everything up, follow Neon’s official guide.

After that:

  1. Clone the repo

  2. Run: npm install && npm run package

This command will produce a ready-to-use application.

Meta

Distributed under the GPL-3.0 license. See LICENSE for more information.

@limitedeternity