This is a wrapper node around the file-type npmjs package.
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
.
- NPMjs Package
- Node-RED node package
- GitHub Repo
- The flow that maintains this codebase.
- Examples in flow form