Check Url Type
It's a pure javascript library for checking url content-types and so on. It is also a node.js module. Check is url an image, an html file, etc.
Installation
use npm
$ npm i check-url-type
or include this in your html
Usage
//in node.js:const check_url_type = ;var type = check_url_type; //in browser:var type = check_url_type;