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

rawkit

v1.5.0

Published

Open chrome devtools debugger

Downloads

67

Readme

npm version Build Status Build status Known Vulnerabilities Dependency Status devDependency Status Greenkeeper badge js-standard-style Maintainability

rawkit

rawkit grabs the chrome inspector URL returned from the node --inspect command and immediately opens devtools. No more clicking, selecting, copying/pasting or navigating. Just run the command and jump into debugging.

Installation

$ npm i rawkit -g

or

$ yarn global add rawkit

Run

$ rawkit example.js

or utilizing npx

$ npx rawkit example.js

Features

  • ✅ Works offline
  • ✅ Supports Mac, Windows & Linux
  • ✅ Support for nodemon
  • ✅ Supports legacy node v4.x & v6.x implementations & debugging protocols
  • ✅ Supports legacy Chrome devtools implementations & debugging protocols
  • ✅ Supports node-like module require/import statements inside snippets

Options

By default, running rawkit can detect any main script that's been defined in the current working directory's package.json and run that. It also will detect the version of Node.js you're running to determine whether or not to fallback to older debug APIs.

--inspect-brk

To break on the first line of the application code.

$ rawkit example.js --inspect-brk

--inspect-port

The debugger port. Defaults to 9229.

$ rawkit example.js --inspect-port=1337

--canary

Open the devtools in canary.

$ rawkit example.js --canary

--nodemon

Use nodemon to run/watch your node process & reload when files change. rawkit supports all the default configuration options for nodemon including execMap inside our project's package.json or nodemon.json files.

Example

$ rawkit example.js --nodemon

--silent

Hide stdout/stderr output from child process in the terminal window.

$ rawkit example.js --silent

--executable=[name]

Specify the name of the executable. Defaults to google chrome.

$ rawkit example.js --executable=firefox

Note: --executable is an experimental feature as rawkit typically does all the work to determine the right executable to use based on your operating system and any other arguments or environmental configuration.

FAQ

Chrome opens to a blank page?

You may have some issues if your version of Chrome has recently updated and it and/or your OS hasn't be restarted. Quick fix here is to just try restarting Chrome and/or restarting your machine. This was identified in the opn project.

Should this be in node core?

Maybe. A flag like --launch would be a nice supplement to --inspect. That said...

Do I need to install a Chrome Extension?

rawkit will automatically launch a splash page asking you to install a corresponding Chrome Extension the first time you run it. If you don't want to install the extension (not recommended, as the extension comes with some nice-to-have behaviors) AND are using a Mac, you can install chrome-cli to get around this. rawkit will automatically detect if chrome-cli exists on your machine and use that to open/launch chrome once it's installed.

$ brew install chrome-cli

Unfortunately, opening internal Chrome links, externally, is not possible without an aid at the moment (ie. urls that contain chrome:// or chrome-devtools:// in this case). This is most likely a security feature. That said, you can use a Chrome Extension as a proxy to make this work. Check out the RESEARCH.md for more information. You can also use something like this lighthouse/chrome-launcher.