Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

lightcrawler

0.0.9 • Public • Published

lightcrawler

Crawl a website and run it through Google lighthouse

npm install --save lightcrawler

lightcrawler --url https://atom.io/ --config lightcrawler-config.json

where lightcrawler-config.json looks something like this:

{
  "extends": "lighthouse:default",
  "settings": {
    "crawler": {
      "maxDepth": 2,
      "maxChromeInstances": 5
    },
    "onlyCategories": [
      "Accessibility",
      "Performance",
      "Best Practices"
    ],
    "onlyAudits": [
      "accesskeys",
      "aria-allowed-attr",
      "external-anchors-use-rel-noopener",
      "geolocation-on-start",
      "no-document-write",
      "no-mutation-events",
      "no-old-flexbox",
      "time-to-interactive",
      "user-timings",
      "viewport",
      "without-javascript"
    ]
  }
}

Enjoy!

Keywords

none

install

npm i lightcrawler

Downloadsweekly downloads

7

version

0.0.9

license

ISC

last publish

collaborators

  • avatar
  • avatar
Report a vulnerability