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

@magic/bash-alias

v0.0.13

Published

various bash aliases for node, git, rust, and @magic. !pollutes bash namespace!

Downloads

142

Readme

@magic/bash-alias

installs useful git, node, rust, and @magic aliases.

POLLUTES THE NAMESPACE OF YOUR BASH WITH ONE AND TWO LETTER COMMANDS.

fortunately, the rest of the linux ecosystem seems to be smart enough not to do that too often.

known name clashes:

  • gs = ghostscript.
  • ll, la, l: exist on some operating systems. should be no change in behaviour though.

installation

npm i -g @magic/bash-aliases

aliases

strings in ${} are expected cli arguments

ls

ll -> ls -alF --color
la -> ls -A --color
l  -> ls -CF --color

git

ga   -> git add ${...files}
gaa  -> git add --all
gb   -> git branch
gbb  -> git checkout -b ${name}
gc   -> git commit -m "message string" ${...files}
gca  -> git commit --amend
gd   -> git -c color.ui=always diff
gl   -> git -c color.ui=always log
gp   -> git push
gps  -> git push --set-upstream ${remote} ${branch}
gr   -> git remote -v
gra  -> git remote add ${name} ${url}
grr  -> git remote remove ${name},
gs   -> git -c color.status=always status
gt   -> git tag -a '...ARGV' -m '...ARGV'

git shortcuts

gcbump    -> git commit -m 'version: bump' ./package.json ./package-lock.json"
gcdeps    -> git commit -m 'deps: update' ./package.json ./package-lock.json"
gcdevdeps -> git commit -m 'devdeps: update ' ./package.json ./package-lock.json"
gcdist    -> git commit -m 'dist: update' ./dist"
gcdocs    -> git commit -m 'docs: update' ./docs"
gclog     -> git commit -m 'readme: update changelog' ./README.md"
gcread    -> git commit -m 'readme: update' ./README.md"

node

nb  -> npm run build
nd  -> npm run dev
nf  -> npm run format
ni  -> npm install
np  -> npm run prod
nr  -> npm run
ns  -> npm start
nt  -> npm test
nu  -> npm update

@magic

m   -> magic dev
mb  -> magic build
mc  -> magic clean
md  -> magic dev
mp  -> magic prod
ms  -> magic serve

rust

cb  -> cargo build
cch -> cargo check
cf  -> cargo fmt -v
ci  -> cargo install
cr  -> cargo run
ct  -> cargo test
cw  -> cargo watch
cwr -> cargo watch -x run

changelog

0.0.1

first release

0.0.2

add colors to directory listings.

0.0.3

  • update git commit messages
  • fix docs

0.0.4

  • rename cc to cch to prevent name clash.
  • add gt => git tag -a $1 -m $1

0.0.5

bump required node version to 14.2.0

0.0.6

  • bump required node version to 14.15.4
  • update dependencies
0.0.7

gcdocs: "git add docs" before comitting

0.0.8
  • update dependencies
  • add nr -> npm run, but do not alias it yet -.-
0.0.9

actually add the nr bin alias to package.json

0.0.10

update dependencies

0.0.11
  • rename package in readme header
  • update dev dependencies
0.0.12
  • add gcdist command, add nr command
0.0.13
  • update changelog
  • update devDependencies
0.0.14 - unreleased

...