Ecosyste.ms: Packages

An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

npmjs.org "detect pdf" keyword

is-pdf-file 1.0.2
Checks if the file path is PDF file. It does not read the complete file nor it depends upon file ...
3 versions - Latest release: about 7 years ago - 1 dependent package - 1 dependent repositories - 17 downloads last month - 3 stars on GitHub - 1 maintainer