from-url

0.0.2 • Public • Published

from-url

NPM version Build Status Dependency Status

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

Package Sidebar

Install

npm i from-url

Weekly Downloads

1

Version

0.0.2

License

MIT

Last publish

Collaborators

  • joliscri.pt