New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

pull-identify-filetype

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pull-identify-filetype

Identify the type of file passing through the stream

latest
Source
npmnpm
Version
1.1.0
Version published
Maintainers
1
Created
Source

pull-identify-filetype

Identifies the file-type passing through the stream using the magic-number signatures at the start of the file.

var pull = require('pull-stream')
var identify = require('pull-identify-filetype')

pull(
  /* source */
  identify(function (type) {
    console.log(type) // => string | false
  }),
  /* sink */
)

Supported types:

jpg png gif bmp tif tif nif ico psd rar zip gz tar msi iso rtf avi mov wmv wma swf flv mid pdf doc docx mp3 svg html

Tested:

tif pdf psd gif jpg png bmp tif ico rar docx gz tar doc rtf mov svg html

Keywords

pull

FAQs

Package last updated on 09 Mar 2016

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