Latest 0.5.5
Homepage https://github.com/kishikawakatsumi/swift-magic
License BSD
Platforms ios 8.0, requires ARC
Authors

Build Status CocoaPods Carthage

A Swift wrapper for libmagic

swift-magic is a Swift interface to the libmagic file type
identification library. libmagic identifies file types by checking
their headers according to a predefined list of file types. This
functionality is exposed to the command line by the Unix command
file.

Usage

import Magic

let description = try Magic.shared.file(path)

Requirements

swift-magic is written in Swift 4.2. Compatible with iOS 8.0+

Installation

CocoaPods

swift-magic is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod 'swift-magic'

Carthage

For Carthage, add the following to your Cartfile:

github "kishikawakatsumi/swift-magic"

Author

Kishikawa Katsumi, [email protected]

License

swift-magic is available under the BSD license. See the LICENSE file for more info.

Latest podspec

{
    "name": "swift-magic",
    "version": "0.5.5",
    "summary": "A Swift wrapper for libmagic",
    "description": "swift-magic is a Swift interface to the libmagic file type identification library. libmagic identifies file types by checking their headers according to a predefined list of file types. This functionality is exposed to the command line by the Unix command `file`.n```",
    "homepage": "https://github.com/kishikawakatsumi/swift-magic",
    "license": {
        "type": "BSD",
        "file": "LICENSE"
    },
    "authors": {
        "kishikawa katsumi": "[email protected]"
    },
    "requires_arc": true,
    "source": {
        "git": "https://github.com/kishikawakatsumi/swift-magic.git",
        "tag": "v0.5.5"
    },
    "source_files": "Magic/**/*.{h,swift}",
    "resources": "Vendor/magic/share/misc/magic.mgc",
    "module_name": "Magic",
    "platforms": {
        "ios": "8.0"
    },
    "swift_version": "4.2",
    "pod_target_xcconfig": {
        "APPLICATION_EXTENSION_API_ONLY": "YES",
        "SWIFT_INCLUDE_PATHS": "${PODS_ROOT}/swift-magic/Vendor",
        "HEADER_SEARCH_PATHS": ""${PODS_ROOT}/swift-magic/Vendor/magic/include"",
        "LIBRARY_SEARCH_PATHS": ""${PODS_ROOT}/swift-magic/Vendor/magic/lib""
    },
    "preserve_paths": [
        "Vendor"
    ]
}

Pin It on Pinterest

Share This