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

@zokugun/nsx

v0.4.1

Published

Quickly run npm scripts

Downloads

328

Readme

@zokugun/nsx

MIT licensed NPM Version Donation Donation Donation

nsx is command-line interface which allows you to run a npm script by:

  • its full name (compile);
  • the first letters (comp for compile);
  • a shortened alias (bd for build:dev).

If the name can't be matched to a single script, a prompt will asked you to desired script to run.

You can pass arguments to the script without any additional --.

Install

With node previously installed:

npm install @zokugun/nsx

Usage

nsx l --fix # run: npm lint -- --fix

Options

| Option | Default | Description | | ------------------- | ------- | --------------------------------------------- | | -c, --confirm | false | Confirm before running the selected script. | | -p, --path | "." | Path to the folder containing package.json. | | -s, --separator | ":" | The separator for shortened alias. |

Syntax (short, alias, and matching)

nsx supports several handy ways to refer to scripts:

  • Full name: call the script by its full npm script name.
    • nsx compile runs the compile script.
  • Prefix matching: type the first letters of the script name.
    • nsx comp can match compile if it's unambiguous.
  • Shortened alias: an alias composed of the first letter of each part of the script name (parts are split by a separator).
    • By default the separator includes : and - (for example build:devbd).
    • The -s, --separator option lets you change which characters are considered separators for alias generation.
    • Example: nsx bd matches build:dev when the alias bd is unique.
  • Special patterns supported for matching:
    • a..z (four characters with two dots): matches scripts starting with a and ending with z.
    • foo#bar#baz (hash # used between fragments): treated as foo.*bar.*baz and matched anywhere in the script name.

Running in series and parallel

You can run a single script, a sequence of scripts (serie), or multiple scripts in parallel.

Series (run one after the other)

Separate requests with a comma ,.

Examples:

  • nsx build,lint,test
  • nsx b,l,t
  • nsx "build --prod,lint --fix" (each request can have its own arguments)
  • nsx b,'l --fix'

Use a trailing $ on a request to continue to the next request even if that request fails, for example:

  • nsx "build$,lint" (if build fails the serie continues to lint)

Parallel (run at the same time)

Separate requests with a plus +.

Examples:

  • nsx build+test
  • nsx b+t
  • nsx "build --prod+test --watch"
  • nsx b+'test --watch'

When running in parallel, each script is started concurrently and their results are reported individually.

Arguments and quoting:

When using multiple requests or arguments containing spaces, quote the whole query so the shell passes it as a single argument.

Examples:

  • nsx "build --prod,lint --fix"
  • nsx "build --prod+test --watch"

These matching rules make it quick to run scripts using short forms, aliases, and combined series/parallel requests.

Donations

Support this project by becoming a financial contributor.

License

Copyright © 2025-present Baptiste Augrain

Licensed under the MIT license.