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

videojs-debugger

v2.0.1

Published

A debugger for videojs

Downloads

3

Readme

videojs-debugger

Including

  1. Include bootstrap.js in after video.js: <script src="src/js/bootstrap.js"></script>
  2. Include debugger.css: <link href="src/css/debugger.css" rel="stylesheet">
  3. Initialize the debugger with the url to the debugger.js file:
var player = videojs('video');
player.debuggerWindow({
  js: "src/js/debugger.js",
  css: "src/css/debugger.css"
});

F2 or Triple Tap to open debugger

The debugger is loaded on demand via a certain trigger.

  • On desktops, the trigger is <F2>.
  • On mobile devices, the trigger is a three finger tap

Options

  • js: The url to the debugger script
  • css: The url to the debugger stylesheet

Usage

videojs.log

Once the the plugin gets loaded, there are several extra logging methods available for use.

Available always

  • videojs.log.debug - Adds a debug message
  • videojs.log.warn - Adds a warn message
  • videojs.log.info - Adds an info message. This one is equivalent to videojs.log itself
  • videojs.log.error - Adds an error message

Available after the debugger has been opened

  • videojs.log.resize - Toggles the size of the debugger window
  • videojs.log.clear - Clears the current output in the debugger window
  • videojs.log.move - Moves the debugger window to the next corner
  • videojs.log.profile - Adds a profile message

Known issues

  • Email: To test emailing the log, you will need to supply a recipient's email address when your email client opens.
  • Email: Currently, email does not format the log dump. The contents of the email are the contents of the array of Strings, separated by commas. Would formatting be handled better on the server side?