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

cm1

v0.0.4

Published

Command Recaller

Downloads

3

Readme

Command Memorizer [V1]

cm1 is a simple CLI tool for managing frequently run commands. It can be used to memorize chain of CLI commands, create short key aliases for easy recall and run processes at a later time.

Cm1 also provides a simple web GUI for managing commands https://cm1cs.herokuapp.com/ .. This is particularly useful if you use / run same commands on different devices or if you are changing devices altogether. You can manage these commands from the web gui, pull them into your local device using the token generated from the GUI.

Installation

npm install -g cm1

Memorize a command

cm1 --add "git add --all && git commit -am {optional_placeholder}" basic-commit

Memorize the chained commands "git add --all && git commit -am {optional_placeholder}" and index with the key basic-commit

Recall and run memorized command

cm1 basic-commit "Init cm1 repository"

Run the command[s] indexed with basic-commit passing "Init cm1 repository" as a replacement for any placeholders in the indexed command: git add --all && git commit -am "Init cm1 repository"

Recall command but don't run

cm1 basic-commit "Init cm1 repository" --noexec

Just echo command on the CLI: git add --all && git commit -am "Init cm1 repository"

List memorized commands

cm1 --list

Key: gc Command: git commit -am {message} && git push origin {branch} To run: cm1 gc Key: gr Command: sudo rm -fr .git To run: cm1 gr

Rename command key

cm1 -r basic-commit bc

Running cm1 bc "some commit message" will now do git add --all && git commit -am "some commit message"

Modify command

cm1 -m bc "git add --all && git commit -am {commitmessage} && git push origin {branchname}"

Remove a memorized command

cm1 --clear bc

Clear all memorized commands

cm1 --clear

Set cm1 token

cm1 --init tokenvalue [-d]

Token can be gotten from https://cm1cs.herokuapp.com/. If the -d flag is passed, tokenvalue will also be set as the default token to use with cm1.

Set cm1 token as default

cm1 --default tokenvalue

Push locally stored commands to cloud storage

cm1 --push

Pull commands stored in cloud storage to local storage

cm1 --pull [-f]

If -f flag is passed, pulled commands will overwrite existing commands in local storage else, a merge is made.