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

mrowki

v0.1.1

Published

Minimal `meow`-like CLI helper using `util.parseArgs`.

Readme

mrowki

Minimal meow-like CLI helper using util.parseArgs.

[!NOTE] meow is a great library that I have both used and contributed to. mrowki is an attempt to replicate it with fewer dependencies and less options. If meow meets your use case, use it!

I had originally tried to use the name mrow, but npm disallowed it due to typosquatting rules.

My cat's name is Suki, and she often makes mrow noises. Hence, mrowki :)

Features

  • Parses kebab-case flags defined in camelCase
  • Supports aliases, short flags, and default values
  • Parses positional (non-flag) arguments
  • Automatically supports --help/-h and --version/-v
  • Sets the process title to the binary name defined in package.json
  • A set of log-level helpers prepended with colored icons

Limitations

  • Only supports boolean and string flags
  • No required or enum flags
  • Boolean negation only via --no-[flag] (not --[flag]=false)
  • Does not allow unknown flags
  • No commands

Install

npm install mrowki
yarn add mrowki
pnpm add mrowki

Usage

#!/usr/bin/env node
import mrowki, { log } from "mrowki";
import packageJson from "./package.json" with { type: "json" };

const cli = mrowki(`
  Usage
    $ lintr […files]

  Options
    --help          -h  Show help
    --version       -v  Show version
    --verbose       -V  Debug log level
    --log-level     -L  Set log level (debug, info, warn, error)
    --fix, --apply      Fix lints, if possible
`, {
  pkg: packageJson,
  flags: {
    verbose: {
      shortFlag: "V",
      type: "boolean",
    },
    logLevel: {
      type: "string",
      default: "info",
    },
    fix: {
      type: "boolean",
      aliases: ["apply"],
    },
  },
});

const logLevel = cli.flags.verbose ? "debug" : cli.flags.logLevel;

// lintr --fix foo.js -V -- bar.js
log.info(cli.flags, cli.input);
//=> ℹ { fix: true, verbose: true, logLevel: "info" }, ["foo.js", "bar.js"]

API

mrowki(helpText, options)

Returns an object with the parsed process.argv:

  • flags (Record<string, boolean | string>) - Flag results in camelCase, accounting for defaults and aliases.
  • input (string[]) - Positional (non-flag) arguments.
  • showHelp(exitCode?) (function) - Shows the help text and exits with given code (default: 2 for incorrect usage).

helpText

Type: string

Help text shown with --help, -h, or cli.showHelp([exitCode]).

Text is trimmed and re-indented, so you can pass a template literal without e.g. a dedent helper:

mrowki(`

      Usage
        $ foo

`, {…});
$ foo --help

  Usage:
    $ foo

$ …

options

Type: object

pkg

Required
Type: object

The parsed package.json used for the version flag and process title.

flags

Type: object

Argument flags, authored in camelCase (someFlag) but matching in kebab-case (--some-flag).

type

Required
Type: "boolean" | "string"

Type of the flag.

default

Type: boolean | string

Default value when the flag is not specified.

shortFlag

Type: string

A short flag alias.

aliases

Type: string[]

Other names for the flag.

log

Type: object

A set of log-level helpers prepended with colored icons, with fallbacks for non-Unicode terminals.

| Level | Icon | Fallback | | ------- | :--: | :------: | | info | ℹ | i | | success | ✔ | √ | | warn | ⚠ | ‼ | | error | ✖ | × |

Based on log-symbols.

info

Type: (...args: unknown[]): void

Logs to stdout with a prepended blue info icon (ℹ).

success

Type: (...args: unknown[]): void

Logs to stdout with a prepended green success icon (✔)

warn

Type: (...args: unknown[]): void

Logs to stderr with a prepended yellow warning icon (⚠).

error

Type: (...args: unknown[]): void

Logs to stderr with a prepended red error icon (✖).

Related

  • meow - CLI app helper.
  • peowly - meow inspired parseArgs() based CLI parser with help text helpers.
  • pargs - A useful wrapper for util.parseArgs.