is-cdn-url
v1.0.0
Published
Check if an URL is from CDN
Downloads
3
Readme
is-cdn-url
Check if an URL is from CDN.
Install
$ npm install is-cdn-url --save
Usage
const isCdnUrl = require('is-cdn-url')
isCdnUrl('//cdn.jsdelivr.net/npm/[email protected]/dist/jquery.min.js')
// => true
isCdnUrl('https://kikobeats.com')
// => false
License
is-cdn-url © Kiko Beats, released under the MIT License. Authored and maintained by Kiko Beats with help from contributors.
kikobeats.com · GitHub Kiko Beats · Twitter @Kikobeats