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

camer

v1.0.9

Published

A nifty command alias manager

Downloads

5

Readme

camer

A nifty command alias manager

Note: NPM only supports Mac platform, while cargo supports Mac platform and Linux platform.

Quick Start

Install

# cargo
cargo install camer
# pnpm
pnpm add camer -g

Usage

$ camer -h
camer 1.0.0

USAGE:
    camer <SUBCOMMAND>

OPTIONS:
    -h, --help       Print help information
    -V, --version    Print version information

SUBCOMMANDS:
    add       Add a command alias
    clean     Clean up CAM application files
    help      Print this message or the help of the given subcommand(s)
    init      Initialisation of the configuration file
    ls        Show all alias set
    remove    Remove existing alias

Init

The configuration file needs to be initialised before the camer can be used. This is done by executing camer init.

$ camer init
[CAM INFO]: cam initialization succeeded, please run `source /Users/kim/.zshrc`

When the above message is output on the command line, the initialisation is successful.

Ls

The camer ls command lists all alias set.

$ camer ls
 Alias |            Command
=======+================================
  gs   |           git status
-------+--------------------------------
  ga   |            git add
-------+--------------------------------
  gaa  |           git add -A
-------+--------------------------------
  gd   |            git diff
-------+--------------------------------
  gdc  |       git diff --cached
-------+--------------------------------
  gb   |           git branch
-------+--------------------------------
  gba  |         git branch -a
-------+--------------------------------
  gc   |         git commit -m
-------+--------------------------------
  gca  |         git commit -am
-------+--------------------------------
  gco  |          git checkout
-------+--------------------------------
  gcb  |        git checkout -b
-------+--------------------------------
  gcl  |           git clone
-------+--------------------------------
  gcp  |        git cherry-pick
-------+--------------------------------
  gm   |           git merge
-------+--------------------------------
  gma  |       git merge --abort
-------+--------------------------------
  gpl  |            git pull
-------+--------------------------------
  gps  |            git push
-------+--------------------------------
 gpsa  |         git push --all
-------+--------------------------------
 gpsu  | git push --set-upstream origin
-------+--------------------------------
  grh  |         git reset HEAD
-------+--------------------------------
 grhh  |     git reset HEAD --hard
-------+--------------------------------
  grm  |             git rm
-------+--------------------------------
 grma  |        git rm --cached
-------+--------------------------------
  grc  |     git rebase --continue
-------+--------------------------------
  grs  |       git rebase --skip
-------+--------------------------------
  gst  |           git stash
-------+--------------------------------
 gsta  |        git stash apply
-------+--------------------------------
 gstd  |         git stash drop
-------+--------------------------------
 gstl  |         git stash list
-------+--------------------------------
 gstp  |         git stash pop
-------+--------------------------------
  gsh  |            git show
-------+--------------------------------
 gshh  |         git show HEAD
-------+--------------------------------
  gss  |        git show --stat
-------+--------------------------------
  gsl  |          git shortlog
-------+--------------------------------
 gslc  |        git shortlog -sn
-------+--------------------------------
  gt   |            git tag
-------+--------------------------------
  gta  |           git tag -a
-------+--------------------------------
  gtl  |           git tag -l
-------+--------------------------------
  gmv  |             git mv
-------+--------------------------------
  ni   |          npm install
-------+--------------------------------
  ya   |            yarn add
-------+--------------------------------
  pa   |            pnpm add
-------+--------------------------------
  nr   |            npm run
-------+--------------------------------
   s   |         npm run start
-------+--------------------------------
   t   |          npm run test
-------+--------------------------------
   p   |          npm run prod
-------+--------------------------------
   d   |          npm run dev
-------+--------------------------------
   b   |         npm run build

These are the default alias settings.

Add

The camer add command adds a new alias. The alias name and the command to be executed are required.

Let's add an alias for the npm run deploy command

$ camer add nd "npm run deploy"
[CAM INFO]: nd added successfully, please run `source /Users/kim/.zshrc`

The above result means that this was added successfully, so let's run the prompt command to make it work.

Remove

The camer remove command removes an existing alias. The alias name is required.

Let's remove the alias added in Add

$ camer remove nd
[CAM INFO]: remove nd alias succeeded, please run `source /Users/kim/.zshrc`

The above result means that this was removed successfully, so let's run the prompt command to make it work.

Clean

When you want to uninstall the camer application, please run camer clean before downloading if you need the configuration file to be removed along with it.

$ camer clean
[CAM Info]: Cam cleanup succeeded

The above result means that the cleanup was successful.

If you want to continue using it, please run camer init again to initialise it.

License

MIT