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

@arcdelta/sx

v2.1.1

Published

Micro CLI for interactive running npm & yarn scripts.

Downloads

16

Readme

:zap: sx

CircleCI npm (scoped) semantic-release Commitizen friendly Dependabot

Micro CLI for interactive running npm & yarn scripts.

Gosh, why?

First, I wanted to practise creating public CLI packages/libraries.

Secondly, I'm lazy. Like, really lazy. I don't even like to type much. And sometimes I'm perplexed by amount of steps required to run an npm or yarn script. Especially if you can't remember what scripts a project even has without diving into an IDE or cating (lessing, bating) a package.json.

Thirdly, if you seek for autocompletion, I would suggest you to use this zsh enhancement. If you are like me—read on.

Installation

Node v12.18.0 or higher is required

$ npm i -g @arcdelta/sx

Usage

Basic

Just type at the root of your project:

$ sx

This will run an interactive prompt with scripts from package.json as selectable options. You pick one, hit Enter and that's it.

I have plans on adding lerna support and picking multiple scripts.

Options

| Option | Description | | ----------------- | ------------------------------------ | | -n, --npm | Use npm to run a script. | | -p, --pnpm | Use pnpm to run a script. | | -y, --yarn | Use yarn to run a script. | | -v, --version | Output the current version. | | -h, --help | Output help message. |

Package manager

If you use yarn instead of npm, you can instruct sx to use it as a default package manager by exposing a SX_PM=yarn environment variable in your shell's rc file (.zshrc, .bash_profile, etc).

Deps

This project relies only on ansi-colors.

License

MIT.