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

supermon

v2.6.0

Published

Nodemon replacement with node_module sync on Docker use

Downloads

42

Readme

npm version build

Ease your Node.js development by automatically restarting your application on file changes and solve the notorious Docker node_modules sync issue as supermon monitors package.json file and installs any missing modules to the internal Docker volume as well.

Supports TypeScript applications out of the box through ts-node.

Install

npm install supermon --save-dev

To use supermon with TypeScript you also need to install ts-node

npm install ts-node --save-dev

Usage

supermon [application file]

Examples

supermon app.js
supermon app.ts
supermon --delay=2000 app.ts
supermon --delay=2000 -- app.ts --port=80

Options


Options:
  --config         Path to JSON config file           [default: "supermon.json"]
  --watch          Directory to watch for file changes   [string] [default: "."]
  --ignore         Directories to ignore for file changes                [array]
  --ext            Comma separated list of file extensions to watch      [array]
  --delay          How many ms to wait after file changes[number] [default: 200]
  --exec           Executable to run the command on                     [string]
  --legacywatch    Use polling instead of FS events                    [boolean]
  --pmexec         Package manager executable to use   [string] [default: "npm"]
  --skipfirstsync  Don't do full sync on first run                     [boolean]
  --version        Show version number                                 [boolean]
  --help           Show help                                           [boolean]
  --debug          Show debug information                              [boolean]

Note: If both, supermon and application arguments are provided, it is recommended
      to use "--" as separator between supermon and application command & arguments.
      Example: "supermon --delay=2000 -- app.js --port=80"

Note: Boolean options do not require value to be specified

Example use: "supermon app.js"
Example use: "supermon --delay=2000 -- app.js --port=80"

Config file

Supermon supports setting all your options through single configuration file, supermon.json.

Example:

{
  "delay": 2000
}

package.json

If you want to keep your amount of config files to minimum, you can also set the options through supermon object in package.json.

Example:

{
  "name": "my-awesome-project",
  "version": "0.0.1",
  "...": "...",
  "supermon": {
    "delay": "2000"
  }
}

Environment variables

All options can also be set though environment variables with SUPERMON_ prefix.

Example:

SUPERMON_DELAY=2000

Contributing

Master branch

Master branch must always represent the current deployed state, no commits are allowed directly to master.

Feature branches

All work should be done in feature branches. Branches should have human readable name.

Merging

Merging to master should happen through pull requests. Any pull request should have working tests for any new added feature added in the branch, should pass existing tests and should have been approved by at least one person before merging.