Skip to content

Detect the file type of a file or stdin

License

Notifications You must be signed in to change notification settings

sindresorhus/file-type-cli

Repository files navigation

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