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

dev-doctor

v0.0.2

Published

A doctor for your dev

Downloads

5

Readme

dev-doctor

dev-doctor is a framework for adding in developer environment checks to your project. Similar to what you might find with other popular projects (e.g., homebrew's brew doctor, or NPM's npm doctor), this helps set up common checks in your project, and provide a facility to add in custom checks with logic, expectations, and status message.

Script can be configured to run as part of the project's config via package.json, or installed globally (where it will use the doctor config file in the current directory).

This helps with engineer troubleshooting, allowing teams to commit a list of common problems and fixes, and avoid storing such solutions in communications tools like Slack messages, Wiki pages, or other documents which are disconnected from the code.

Installation

To install globally:

$ npm install -g dev-doctor

To add as a development dependency:

$ npm install dev-doctor --save-dev

You can also trigger it by simply running in the project directory:

$ npx dev-doctor

In all cases, add a dev-doctor.config.js in the project root.

Usage

By default, the tool will not do any checks, so it always succeed.

$ npx dev-doctor

✅ OK (0/0 checks passed)

Configure the tool by specifying checks with options for your project in dev-doctor.config.js

There are several types of checks that come pre-packaged with the tool:

| Type | Description | Configuration | | ------- | --------------------------------------------------- | ------------- | | exist | Check to use when if a directory or file is present | glob | | cmd | Check to see if a command can be run successfully | exec |

All check types allow for a hint on what to do if the check fails, a status message for when the check is being run, and an option to skip if the command is presently disabled.

Examples

TBD

  • Example config for each type
  • Example of output when it passes or when it fails
module.exports = [
  {
    type: "exist",
    glob: "**/*/test.js",
  },
  {
    type: "cmd",
    exec: "path/to/executable",
  },
];

Adding custom commands

You can define your own rules that check other things which should be set up in the dev environment.

TBD

Plugins

Use others' configurations in your application, or share custom checks between projects within your organization.

TBD