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

cd-recent

v1.1.5

Published

A tool for listing and changing directory to a recently visited directory in a UNIX terminal

Downloads

17

Readme

💿 cd-recent

A CLI tool for listing recently visited directories in your UNIX terminal

Installation

Install cd-recent globally to run anytime to find out what the most recent directories you've visited are:

$ npm i cd-recent -g

Setup

cd-recent can be setup to either track recently visited directories dynamically (as you visit them) or retroactively by parsing your history file

NOTE: parsing your history file retroactively will not produce absolute paths

Dynamic Tracking

To enable dynamic tracking of recently visited directories simply run:

$ cd-recent -t

Then override the cd builtin by adding the following to your .bashrc or .zshrc:

function cd() {
    builtin cd $1
    cd-recent -a $(pwd)
}

NOTE: Dynamic tracking currently only stores a maximum of 1000 recently visited directories

Retroactively Tracking

Then easily set the full path to history file:

$ cd-recent -H [full-path-to-history-file]

Running

List recently visited directories by running (valid directories will be displayed green):

$ cd-recent

List a specific number of recently visited directories by running:

$ cd-recent -l [limit]

Set a default number of recently visited directories to list by running:

$ cd-recent -d [default-limit]

Manually add to recently visited directories by running (dynamic tracking must be enabled):

$ cd-recent -a [full-path-of-directory]

Reset recently visit directories by running (dynamic tracking must be enabled):

$ cd-recent -r

Help

Display the help menu by running:

$ cd-recent -h

Usage: cd-recent [options]

Options:

  -V, --version                                 output the version number
  -a --add [full path of directory]             adds a recently visited directory to list
  -d --defaultLimit [default limit]             sets default number of recent directories to list
  -H --historyFile [full path to history file]  sets history file to parse when tracking retroactively
  -l --limit [limit]                            sets limit of recent directories to list
  -r --reset                                    reset list of recently visited directories
  -t --toggle                                   toggle dynamic or retroactive recently visited directories tracking
  -h, --help                                    output usage information

Contributing

Feel free to contribute by reporting issues, suggesting some new features or raising a pull request 🤘