Socket
Book a DemoInstallSign in
Socket

ffi-extractor

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ffi-extractor

0.1.1
bundlerRubygems
Version published
Maintainers
1
Created
Source

ffi-extractor

  • Homepage
  • Issues
  • Documentation
  • [Email](mailto:postmodern.mod3 at gmail.com)

Description

Ruby FFI bindings to libextractor, a library for extracting metadata from a variety of file formats.

libextractor is a simple library for keyword extraction. libextractor does not support all formats but supports a simple plugging mechanism such that you can quickly add extractors for additional formats, even without recompiling libextractor. libextractor typically ships with a dozen helper-libraries that can be used to obtain keywords from common file-types.

libextractor is a part of the GNU project.

Examples

require 'ffi/extractor'

FFI::Extractor.extract(data) do |plugin,type,format,mime_type,data|
  # ...
end

FFI::Extractor.extract_from(path) do |plugin,type,format,mime_type,data|
  # ...
end

Requirements

Install

$ gem install ffi-extractor

Fedora

$ sudo yum install libextractor libextractor-plugins

Ubuntu

$ sudo apt-get install libextractor libextractor-plugins

OSX

$ sudo brew install libextractor

ffi-extractor - Ruby FFI bindings for libextractor

Copyright (c) 2012 - Hal Brodigan (postmodern.mod3 at gmail.com)

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA

FAQs

Package last updated on 22 Sep 2012

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.