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 🙏

© 2026 – Pkg Stats / Ryan Hefner

killa-watch

v1.0.7

Published

Watch and compile JS, CSS and LESS files.

Readme

killa-watch

Watch and compile JS, CSS and LESS files.

How to use

First, do npm install killa-watch -g to install this package globally. Next step is create a killa-watch.json file where you will use it. Generally, on root of your project.

This file will have the watch rules. Copy that structure and so you fill as you want. You can specific how many watchers you want here.

{
    "watchers": [
        {
            "watch": "path/to/resources/**/*.less",
            "capture": "path/to/resources/master.less",
            "output": "path/to/publics/master.css",
            "type": "less",

            // Optional.
            "prioritize": [
                "path/to/resources/file1.less",
                "path/to/resources/file2.less",
                "path/to/resources/fileN.less"
            ]
        }
    ]
}

The watch (string, string[]) key define the watch rules. In this example, it'll watch for all .less files in path/to/resources directory. Any file added, unlinked or modified will make killa-watch rebuild.

The capture (string, string[]) key define what files will be rebuilded -- you can use glob patterns here too. Is important to know that the watched file will not be processed directly. In this example, if watcher get something it will process the capture'd files.

The output (string) key define the output filename. After process the capture file, this file will be created or updated with result content.

The type (enum: js, css, less) key define how process the capture file.

Optionally, you can set the prioritize key (string[]). If you use glob pattern on capture, possibly you will get an array of files and maybe you need concat this files in specific order. For example: you need that jquery.js be processed first, and others files after it. So you specify the jquery.js path here.

Starting watcher

Now the magic starts. Open terminal in a folder with the killa-watch.json and call killa-watch. On start it, all your watchers will be compiled automatically, then the watch will start. Any file added, unlinked or changed will fire the rebuild process automatically.

If you need that processed file be minified too, just use parameter --production. Not is recomended you use it in development mode because is heavy -- not toooo heavy, but it is more than normal.

Example output

Loading watchers from killa-watch.json.

Building file public/site.css: OK
Building file public/site.js: OK
Building file public/vendor.css: OK
Building file public/vendor.js: OK

Watching files res/site/**/*.less to public/site.css.
Watching files res/site/**/*.js to public/site.js.
Watching files res/vendor/**/*.css to public/vendor.css.
Watching files res/vendor/**/*.js to public/vendor.js.

Rebuilding file public/site.css because res/site/site.less was changed: OK