@gregoriusrippenstein/node-red-contrib-filetype

0.0.4 • Public • Published

filetype

This is a wrapper node around the file-type npmjs package.

Usage

The msg.payload should either be a Buffer or a stream.Readable and the filetype will attach a filetype attribute to the msg object. If file-type can cannot not identify the data, the attribute is set to undefined.

The attribute added to the msg object is filetype.

Artifacts

/@gregoriusrippenstein/node-red-contrib-filetype/

    Package Sidebar

    Install

    npm i @gregoriusrippenstein/node-red-contrib-filetype

    Weekly Downloads

    1

    Version

    0.0.4

    License

    Don't do evil.

    Unpacked Size

    61.5 kB

    Total Files

    9

    Last publish

    Collaborators

    • gregoriusrippenstein