Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Determine file type and encoding using "magic" numbers
Ruby
branch: master
Failed to load latest commit information.
lib
test changed exception to errorg
.gitignore
Gemfile
LICENSE.txt
README.rdoc
Rakefile
magic.gemspec

README.rdoc

magic

Ruby FFI wrapper to the “magic” library, that determines content type and encoding of files and strings. The library does three types of tests: filesystem tests, magic number tests, and language tests. The first test that succeeds causes the file type to be returned.

Installation and Usage

See project page for details.

Links

Copyright

Copyright © 2010 Jakub Kuźma. See LICENSE for details.

Something went wrong with that request. Please try again.