libmagic-crystal
libmagic-crystal
Crystal bindings for libmagic.
Installation
Add this to your application's shard.yml
:
dependencies:
libmagic-crystal:
github: pablotron/libmagic-crystal
Usage
require "libmagic-crystal/magic"
# create magic bindings
magic = Magic::Magic.new
# get mime type of file
mime_type = magic.file("/path/to/some/file")
Development
TODO: Write development instructions here
Contributing
- Fork it ( https://github.com/pablotron/libmagic-crystal/fork )
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create a new Pull Request
Contributors
- pablotron Paul Duncan - creator, maintainer
Repository
libmagic-crystal
Owner
Statistic
- 4
- 0
- 0
- 0
- 0
- over 8 years ago
- July 19, 2016
License
MIT License
Links
Synced at
Thu, 21 Nov 2024 20:46:34 GMT
Languages