module Magic

Overview

Crystal bindings to libmagic

Defined in:

magic.cr
magic/magic.cr

Constant Summary

VERSION = "0.1.0"

Class Method Summary

Class Method Detail

def self.detect(filename : String) #

Detect mime type, encoding and file type


[View source]
def self.detect(file : File) #

Detect mime type, encoding and file type


[View source]
def self.detect(buffer : Bytes) #

Detect mime type, encoding and file type


[View source]
def self.version #

Returns the libmagic version


[View source]