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

mimosa-post-hook

v0.3.0

Published

A mimosa module to allow for execution of scripts/commands after 'mimosa watch' starts up.

Readme

mimosa-post-hook

Overview

For more information regarding Mimosa, see http://mimosa.io.

Usage

Add 'post-hook' to your list of modules. That's all! Mimosa will install the module for you when you start up.

Functionality

At the very last step in mimosa watch startup, this module will execute any scripts/commands provided in the commands array.

It will write any output to the console.

Commands are executed in the order they are provided. non-persistent commands will be executed synchronously.

Default Config

postHook:
  workflowStep: "complete"
  commands: []
  • workflowStep: The postBuild workflow step to execute the commands. Possible workflow steps include: "init", "beforeOptimize", "optimize", "afterOptimize", "beforeServer", "server", "afterServer", "beforePackage", "package", "afterPackage", "beforeInstall", "install", "afterInstall", "complete". Use this to move the commands to a different part of the workflow, if you need something to be executed during a different step.
  • commands: a list of objects to configure commands to be run when the mimosa watch startup process ends.

Example Config

postHook:
  workflowStep: "init"
  commands: [{
    command: "./copylogs.sh"
  },{
    command: "mongod"
    persistent: true
    callbackOn: "waiting for connections on port 27017"
  }]
  • persistent: Whether or not the command results in something that stays running. Defaults to false. If it stays running, it cannot be reliably be executed synchronously. If 10 commands need to be executed and they are all not persistent, then they will all be executed synchronously.
  • command: a string, required, the command to be executed
  • callbackOn: a number or a string. Only valid when persistent is true. Because a persistent command never ends, post-hook does not know when to move on to the next command or when to hand control back over to mimosa to continue executing its workflows. If callbackOn is not provided when persistent: true, then post-hook continues immediately. If a number is provided, then post-hook continues after that number of milliseconds. If a string is provided, then post-hook continues after that string occurs in the stdout. The example above will start mongod, and then when the string "waiting for connections on port 27017" appears in the stdout, post-hook will continue.