Skip to content

victorhzhao/check-url-type

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

<script src="https://cdn.jsdelivr.net/npm/check-url-type/index.js"></script>

Usage

//in node.js:
const check_url_type = require('check-url-type');
var type = check_url_type.get_type('url');

//in browser:
var type = check_url_type.get_type('url');

About

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.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published