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

@asd14/posix-utils

v1.3.0

Published

Cross-platform POSIX utilities for development workflows.

Readme

Release npm version

PU, short for Posix Utils

Cross-platform POSIX utilities for development workflows.

Installation

NPM

npm install --save-dev @asd14/posix-utils

Pacman (ArchLinux)

TBD

APT (Ubuntu)

TBD

Usage

pu git-has-changed - Git Changed Detection

Check if a file has changed since a given git commit reference. This tool compares the current state of a file against its state at a specific commit, making it useful for conditional build steps, deployment decisions, and change detection in CI/CD pipelines.

The tool exits with code 0 if the file has changed, making it perfect for use in shell conditionals and npm scripts.

# In npm scripts - regenerate lock only if package.json changed
pu git-has-changed package.json --since HEAD~1 \
    && npm install

# Check against specific version tag
pu git-has-changed src/config.json --since v1.2.0 \
    && npm run rebuild-config

pu log - Fancy Logging

Print dated, colored, namespaced, multi-level, CI aware and pretty formatted log messages. Supports different log levels with automatic filtering and colored output.

Messages include timestamps and can be enhanced with key-value pairs for structured logging.

# Basic logging
pu log info "Build started"
pu log success "Deploy completed"
pu log error "Something went wrong"

# With variables
LOG_NAMESPACE="my-app"
pu log warning "Invalid parameter" \
    -v param-name "username" \
    -v param-value "null"

pu tadaa - An overly excited version of pu log success

Display celebratory "TADAA!" messages with decorative borders, stars, and optional content. Perfect for announcing successful operations, completed builds, or project milestones.

# Simple celebration
pu tadaa

# With title
pu tadaa "Build completed"

# Full celebration with message and note
pu tadaa "Deploy successful" "All services are running" \
    "Check logs for details, file:///var/log/deploy.log"

# Colors automatically disabled when piping or redirecting
pu tadaa "Build finished" | tee build.log

# Force colors even when piping
pu tadaa --color "Deploy completed" | less -R

pu install - Cross-Platform Package Installation

Cross-platform package installer that automatically detects the system package manager and installs the specified packages. Supports major Linux distributions, macOS, and npm packages.

Packages are validated for security (only alphanumeric characters, dots, underscores, hyphens, and plus signs allowed). Package manager flags can be passed after -- separator.

# Auto-detect package manager
pu install git curl jq

# Force specific package manager
pu install --package-manager npm typescript eslint

# Pass flags to package manager
pu install firefox -- --cask

# Install development dependencies
pu install build-essential git nodejs npm

License

MIT