0.0.2 • Published 9 years ago
from-url v0.0.2
from-url
Check assets hostname
Keynote
From a given url, display list of requested resources matching a {hostname,pattern}
Install
$ npm install --save from-url
Usage
var from = require('from-url');
from('https://github.com/','assets-cdn.github.com', function(err, assets) {
for(var url in assets){
console.log(assets[url]);
//=> true || false
}
});
from('https://github.com/','cdn', function(err, assets) {
for(var url in assets){
console.log(assets[url]);
//=> true || false
}
});
$ npm install --global from-url
$ from-url --help
Example
from-url --url=https://github.com/ --pattern=assets-cdn.github.com
✔︎ https://assets-cdn.github.com/assets/github.js
✖ https://collector-cdn.github.com/assets/api.js
Options
--url
The given url
--pattern
Check the pattern with the resources requested
--color
Colorize the output
License
MIT © Yassine AZZOUT