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

ubolt

v1.3.0

Published

A command line app for managing command line aliases per directory

Downloads

14

Readme

ubolt

npm

A simple command alias utility that helps manage global user aliases along with per-directory aliases.

To install:

npm install -g ubolt

User configuration

For user level commands, create a .ubolt.yaml file in your home directory. In the file, add an entry for any global command alias you want. For example:

status:
    command: git status
    description: Perform a git status
pull:
    command: git pull
    description: Perform a git pull

Now you can execute these commands anywhere by simply:

ubolt status
ubolt pull

Creating aliases for these commands isn't that useful, but when you have a really long command line like when using docker, this becomes really helpful!

Local configuration

What makes ubolt more awesome is setting up local command aliases. Unlike the aliases you set in the shell, having directory level aliases lets you put project specific commands that will only show up when executing ubolt while that directory is your current directory. For example:

ubolt-info:
    command: npm info ubolt
    description: Display npm information for ubolt

Now only when you are in this directory you can execute:

ubolt ubolt-info

Global alias

I suggest you setup an alias for ubolt itself to something very short. If you are using zsh, then you can create an alias like this in your .zshrc:

alias u=ubolt

Then the commands are even less verbose:

u status
u pull
u ubolt-info

Alias discovery

If you just type in ubolt, or give it an alias not found, it will display all the user & local aliases it can find, based on your current directory.

Multiple commands

If you want an alias to execute multiple commands, just use commands: instead of command: in your yaml. For example:

master:
    commands:
        - git checkout master
        - git pull
    description: Return to master and pull latest

Note that if one of the commands fails, the execution will stop.

Command line arguments

You can pass arguments to the commands by just including them after ubolt alias. Inside your .ubolt.yaml file just put $1, $2, etc. to have the arguments replaced. These arguments always start with $1. For example here would be how you specify the argument in your .ubolt.yaml:

files:
    command: ls $1

And to pass it when executing:

ubolt files -la

Naming

I wanted to make a very fast alias command executor, so why not name it after the worlds fastest man?