File::MimeInfo

Perl module for determining file types using the freedesktop.org shared mime-info database

Latest version: 0.35 registry icon
Maintenance score
11
Safety score
100
Popularity score
13
Check your open source dependency risks. Get immediate insight about security, stability and licensing risks.
Security
  Vulnerabilities
Version Suggest Low Medium High Critical
0.35 0 0 0 0 0
0.34 0 0 0 0 0
0.33 0 0 0 0 0
0.32 0 0 0 0 0
0.31 0 0 0 0 0
0.30 0 0 0 0 0
0.29 0 0 0 0 0
0.28 0 0 0 0 0
0.27 0 0 0 0 0
0.26 0 0 0 0 0
0.25 0 0 0 0 0
0.24 0 0 0 0 0
0.23 0 0 0 0 0
0.22 0 0 0 0 0
0.21 0 0 0 0 0
0.20 0 0 0 0 0
0.19 0 0 0 0 0
0.18 0 0 0 0 0
0.17 0 0 0 0 0
0.29_03 0 0 0 0 0
0.29_02 0 0 0 0 0
0.29_01 0 0 0 0 0
0.28_03 0 0 0 0 0
0.28_02 0 0 0 0 0
0.28_01 0 0 0 0 0

Stability
Latest release:

0.35 - This version may not be safe as it has not been updated for a long time. Find out if your coding project uses this component and get notified of any reported security vulnerabilities with Meterian-X Open Source Security Platform

Licensing

Maintain your licence declarations and avoid unwanted licences to protect your IP the way you intended.

Artistic-1.0   -   Artistic License 1.0

Not a wildcard

Not proprietary

OSI Compliant


GPL-1.0-or-later   -   GNU General Public License v1.0 or later

Not a wildcard

Not proprietary

OSI Compliant



File-MimeInfo

This module can be used to determine the mime type of a file; it's a replacement for File::MMagic trying to implement the freedesktop specification for using the shared mime-info database. The package comes with a script called mimetype that can be used as a file(1) work-alike.

Because this module uses the FreeDesktop MIME database, it's most suited for use in perl scripts that run on a desktop OS; in fact, this module is typically pre-installed on Debian and Ubuntu OSes so you can use its command line script mimeopen to open files in the GUI just like you can use open on macOS.

INSTALLATION

To install this module type the following:

perl Makefile.PL
make
make test
make install

DEPENDENCIES

This module expects the freedesktop mime database to be installed, some linux distributions include it, otherwise it can obtained from:

http://freedesktop.org/Software/shared-mime-info

This module requires these other modules which can be obtained from the CPAN if they are not already installed on your system:

  • Carp
  • Exporter
  • Fcntl
  • Pod::Usage
  • File::Basename
  • File::BaseDir
  • File::DesktopEntry

COPYRIGHT AND LICENCE

Copyright (c) 2003, 2008 Jaap G Karssenberg. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.