In Node.js v11, the callback parameter to pipeline was made obligatory: nodejs/node#21054
Subsequently, running file-type with Node.js v11 fails with this error:
TypeError [ERR_INVALID_CALLBACK]: Callback must be a function
I ran the test suite on Travis CI, which confirms this: https://travis-ci.com/fstoerkle/file-type/jobs/190598883
In Node.js v11, the
callbackparameter topipelinewas made obligatory: nodejs/node#21054Subsequently, running file-type with Node.js v11 fails with this error:
I ran the test suite on Travis CI, which confirms this: https://travis-ci.com/fstoerkle/file-type/jobs/190598883