sindresorhus / file-type-cli

Detect the file type of a file or stdin

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

file-type-cli

Detect the file type of a file or stdin

Install

npm install --global file-type-cli

Usage

$ file-type --help

  Usage
    $ file-type <filename>
    $ file-type < <filename>

  Example
    $ file-type unicorn.png
    png
    image/png

Supported file types

Related

About

Detect the file type of a file or stdin

License:MIT License


Languages

Language:JavaScript 100.0%