filetype - Small Go package to infer the file type checking the magic numbers signature (golang)

  •        263

Small and dependency free Go package to infer file and MIME type checking the magic numbers signature.For SVG file type checking, see go-is-svg package.

https://github.com/h2non/filetype

Tags
Implementation
License
Platform

   




Related Projects

mmmagic - An async libmagic binding for node.js for detecting content types by data inspection

  •    C++

An async libmagic binding for node.js for detecting content types by data inspection.detectFile(< String >path, < Function >callback) - (void) - Inspects the file pointed at by path. The callback receives two arguments: an < Error > object in case of error (null otherwise), and a < String > containing the result of the inspection.

Mime Type Detection Utility

  •    Java

Enable Java programs to detect MIME types based on file extensions, magic data and content sniffing. Supports detection from java.io.File, java.io.InputStream, java.net.URL and byte arrays. See the project website www.eoss.org.nz/mime-util for detail

mime-type-detection - League Mime Type Detection

  •    PHP

This package supplies a generic mime-type detection interface with a finfo based implementation. As a fallback for finfo based lookup, an extension map is used to determine the mime-type. There is an advised implementation shipped, which is generated from information collected by the npm package mime-db.

yagmail - yagmail makes sending emails very easy by doing all the magic for you

  •    Python

The goal here is to make it as simple and painless as possible to send emails. Similarly, I make use of having my username in a file named .yagmail in my home folder.


buddy.js - Magic number detection for JavaScript

  •    Javascript

Magic number detection for javascript. Let Buddy sniff out the unnamed numerical constants in your code.We all know magic numbers are frowned upon as a programming practice. They may give no indication of their meaning, and when used multiple times, can result in future inconsistencies. They can expose you to the risk of typos, hinder maintenance and have an impact on readability. That's where Buddy comes in.

watermark - An IPython magic extension for printing date and time stamps, version numbers, and hardware information

  •    Python

An IPython magic extension for printing date and time stamps, version numbers, and hardware information. More examples can be found in this Jupyter notebook.

Java Mime Magic Library

  •    Java

jMimeMagic is a Java library for determining the MIME type of files or streams. Source: https://github.com/arimus/jmimemagic

MimeKit - A

  •    CSharp

MimeKit is a C# library which may be used for the creation and parsing of messages using the Multipurpose Internet Mail Extension (MIME), as defined by numerous IETF specifications.As a developer and user of email clients, I had come to realize that the vast majority of email client (and server) software had less-than-satisfactory MIME implementations. More often than not these email clients created broken MIME messages and/or would incorrectly try to parse a MIME message thus subtracting from the full benefits that MIME was meant to provide. MimeKit is meant to address this issue by following the MIME specification as closely as possible while also providing programmers with an extremely easy to use high-level API.

SharpMimeTools - MIME parser in CSharp

  •    CSharp

SharpMimeTools is an open source MIME parser/decoder assembly that is written in C#. There are two main ways of handling messages with SharpMimeToools, a higher level one that takes case of everything for you (SharpMessage); with just a few parameters to the constructor you get all the hard work done. And a low level api (SharpMimeMessage and the other SharpMime* classes) where you can decide how to handle nested mime parts, mime-types to decode, encodings to use.

textract - node

  •    HTML

A text extraction node module. In almost all cases above, what textract cares about is the mime type. So .html and .htm, both possessing the same mime type, will be extracted. Other extensions that share mime types with those above should also extract successfully. For example, application/vnd.ms-excel is the mime type for .xls, but also for 5 other file types.

node-mime - Mime types for JavaScript

  •    Javascript

A comprehensive, compact MIME type module. If you prefer the legacy version of this module please npm install mime@^1. Version 1 docs may be found here.

mime-types - Ruby MIME::Types implementation

  •    Ruby

Ruby MIME::Types implementation

react-native-magic-move - Create magical move transitions between scenes in react-native 🐰🎩✨

  •    Javascript

A follow up project called react-native-shared-element has been created which can be considered the successor to react-native-magic-move. It it an all native solution that provides superior performance (no more passes over the react-native bridge) and transitions. It however does not support some of the more exotic transition types (flip, shrinkAndGrow) that Magic Move does. It also doesn't support the web-platform yet and requires native extensions to run. New users are advised to use react-native-shared-element when possible. As for Magic Move, no more new developments will be started for Magic Move, merely critical bug-fixes. This notification will be updated as development on react-native-shared-element progresses. * The native extensions are recommended to get the best performance, but they are not required. This makes it possible to use react-native-magic-move with expo or react-native-web. If you're having trouble installing the native extensions, please see this guide on how to install them manually.

SwiftTweaks - Tweak your iOS app without recompiling!

  •    Swift

Animations that look great on your laptop often feel too slow when in-hand. Layouts that looks perfect on a 27-inch display might be too cramped on a 4-inch device. Light gray text may look subtle in Sketch, but it’s downright illegible when you’re outside on a sunny day.These animation timings, font sizes, and color choices are all examples of “magic numbers” - the constants that give your app its usability and identity. The goal of SwiftTweaks: allow you to fine-tune these magic numbers in the debug builds of your Swift project, without having to wait for Xcode to rebuild the app.

Cryptlib - provides Encryption and Authentication Service

  •    C

cryptlib is a powerful security toolkit that allows even inexperienced crypto programmers to easily add encryption and authentication services to their software. It provides support for S/MIME and PGP/OpenPGP secure enveloping, SSL/TLS and SSH secure sessions, CA services such as CMP, SCEP, RTCS, and OCSP, and other security operations such as secure timestamping.

python-magic - A python wrapper for libmagic

  •    Python

python-magic is a python 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. There is also a Magic class that provides more direct control, including overriding the magic database file and turning on character encoding detection. This is not recommended for general use. In particular, it's not safe for sharing across multiple threads and will fail throw if this is attempted.

chemical-mime-data

  •    

A collection of data files which tries to give support for various chemical MIME types (chemical/*) on Linux/UNIX desktops. Chemical MIME's have been proposed in 1995, though it seems they have never been registered with IANA.

OpenPop.NET - POP3 client and MIME parser written in CSharp

  •    CSharp

.NET library written in C# with a full implementation of a POP3 client. Easy to use but yet powerful. Includes a robust MIME parser backed by several hundred test cases.






We have large collection of open source products. Follow the tags from Tag Cloud >>


Open source products are scattered around the web. Please provide information about the open source projects you own / you use. Add Projects.