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

custom-command

v1.0.3

Published

Create custom commands for terminal.

Downloads

2

Readme

Custom - Command

Tired of opening projects by searching through nested folders. Save projects in your terminal and open from anywhere in your preferred editor with just one command. Save websites in terminal and open with ease.

Requirements

Nothing much, you must just have npm installed in your machine.

Installation

Install using the following command in the terminal.

    npm i -g custom-command

Note: After installation, you can use, custom-command or cc anywhere in your terminal to ensure whether it has been installed or not.

Usage

Add/Save projects

Use the following command in your terminal to add/save new projects, websites, and custom commands.

custom-command add

Alternatively, you can also use the following to make the process even faster.

cc add

You can always use either custom-command or cc.

This will prompt the user for the name with which you would like to save the current directory/project. Once you enter the name, your project will be saved and will be accessible from anywhere using terminal.

Initially, it will ask the user to select for their choice of editor, in which it will open the project every time. Choose your choice and continue.

Add/Save Websites

To save website add -u or --url at the end.

    cc add -u

Add/Save custom commands

To save custom command at -c or --custom at the end.

    cc add -c

Open

Now once you have saved your project, it's time to open the projects using the terminal, no matter what your pwd is.

Use the following command to open your project:

    cc open

This will show the list of all the projects, websites, and custom commands which are already saved. Select the project to open.

You can also specify the name of the project which you want to open. For example,

    cc open [project-Name]

This will directly open the project in your project/ website in your preferred editor/ browser.


Delete project

To delete an existing project, use the following command.

    cc delete

This will list all the saved projects. Select the project which you want to delete.


Set editor

To set/change the default editor for your projects, use the following command.

    cc seteditor

Choose from the list of available editors to change/set it.


Remove editor

To delete the default editor for your projects, use the following command.

    cc rmeditor

Remove browser

To delete the default browser to open websites, use the following command.

    cc rmbrowser