npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

console-tourist

v1.2.0

Published

This script provides to analyze console error on your website.

Downloads

41

Readme

Console Tourist

Console Tourist is a simple tool that allows you to collect console messages, errors, unsuccessful requests of all your pages after the DOM loading with authentication support.

What does Tourist do?

  • Crawls all pages on your website.
  • Gets all error messages on the console.
  • Then logs the messages.

How to Install

$ npm install console-tourist

How to you use?

Without Authentication.

index.js

const {tour,auth } = require("console-tourist");
(async()=>{
    tour("https://stackoverflow.com/");
})();

$ node index

With Authentication.

authentication.js

/* Set your login steps */

 //------ START Login steps ------
await page.type('#email', 'username')
await page.type('#password', 'admin123456')
await page.click('#submit-button')
await page.waitForNavigation();
//------ END Login steps ------

index.js

const {tour,auth } = require("console-tourist");

(async()=>{
//set your login url
   var cookies=auth('https://stackoverflow.com/users/login');
   //run tourist with cookies
	tour("https://stackoverflow.com/",cookies);
})();

$ node index

Results

result.log (ex)

{"message":"https://stackoverflow.com : Error with Feature-Policy header: Unrecognized feature: 'speaker'.","level":"warn"}
{"message":"https://stackoverflow.com/# : Error with Feature-Policy header: Unrecognized feature: 'speaker'.","level":"warn"}
{"message":"https://stackoverflow.com/ : Error with Feature-Policy header: Unrecognized feature: 'speaker'.","level":"warn"}
{"message":"https://stackoverflow.com/questions : Error with Feature-Policy header: Unrecognized feature: 'speaker'.","level":"warn"}
{"message":"https://stackoverflow.com/questions : Failed to load resource: the server responded with a status of 400 ()","level":"error"}
{"message":"https://stackoverflow.com/questions : net::ERR_ABORTED https://64083bcc74a934364e3443abb8bd5083.safeframe.googlesyndication.com/safeframe/1-0-37/html/container.html","level":"error"}
{"message":"https://stackoverflow.com/questions : net::ERR_ABORTED https://tpc.googlesyndication.com/safeframe/1-0-37/html/container.html","level":"error"}
{"message":"https://stackoverflow.com/questions : net::ERR_ABORTED https://securepubads.g.doubleclick.net/pcs/view?xai=AKAOjsuC4f2dOLRu7P7T0UrhTrEH2ybUS1nuItt92VgvDaCAb_VdNlCYZUYHMM_zJ2epOaIWjP63jcIFhHRLFPkjXhzMqC1tGLqyO4PM0wiv1z1PaRAQFSzWG_snmORe_UUP5xGF0_zsle4EEZihb-q7AE24dJIcb0mPKdpW7koZ6gV_VypqoIICPNxXvTUZwCgfiHXWT7-2biM_M4aLb2oUZ-wJcoMC1KT_E0ef6EOObGbzi1bUn4HdRvZ2FQIS8Xu3JZuCUfIlzn7IIjpPJf2RU-oeV2zaDq-qn3groYwyGrsa1A&sai=AMfl-YQaUHj6r1WnEUp4se2ZlHx0K1YiFnBKi1fiOv1kiKMeNqs8Nzx4QjcAKUZxZ0Oqj_y5x3y2H_CE5ZROE06av4V3MSvLRCvnOD0wA0NgSyJGjzB58BhSpEPt2nBm9Os&sig=Cg0ArKJSzLLWUMXwS3A6EAE&urlfix=1&adurl=","level":"error"}
{"message":"https://stackoverflow.com/tags : Error with Feature-Policy header: Unrecognized feature: 'speaker'.","level":"warn"}
{"message":"https://stackoverflow.com/users : Error with Feature-Policy header: Unrecognized feature: 'speaker'.","level":"warn"}
{"message":"https://stackoverflow.com/jobs?so_medium=StackOverflow&so_source=SiteNav : Error with Feature-Policy header: Unrecognized feature: 'speaker'.","level":"warn"}
{"message":"https://stackoverflow.com/jobs/companies?so_medium=StackOverflow&so_source=SiteNav : Error with Feature-Policy header: Unrecognized feature: 'speaker'.","level":"warn"}
{"message":"https://stackoverflow.com/teams : Error with Feature-Policy header: Unrecognized feature: 'speaker'.","level":"warn"}
{"message":"https://stackoverflow.com/company : Error with Feature-Policy header: Unrecognized feature: 'speaker'.","level":"warn"}
{"message":"https://stackoverflow.com/jobs?so_source=ProductsMenu&so_medium=StackOverflow : Error with Feature-Policy header: Unrecognized feature: 'speaker'.","level":"warn"}
{"message":"https://stackoverflow.com/talent : Error with Feature-Policy header: Unrecognized feature: 'speaker'.","level":"warn"}

Console(ex):

result