Lint file types based on content rather than extension. Works with images, audio, video, archives, and many other formats. The latest stable version is 4.0.0 (released May 2020), which uses file-type v14.3.0 internally and requires Node.js >= 10.13.0. Unlike simple extension checks, it reads the file's content to verify its actual type. Current release cadence is low, with no updates since 2020.
npm install file-type-lintNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows the Node.js API usage to lint all files in the current directory by content type.
Upgrade Node.js to 10.13.0 or later.
Use require('file-type-lint') instead of import.Consider using file-type directly or other modern alternatives.
Run npm install file-type-lint --save-dev
Use require('file-type-lint') instead of import.