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

dirbook

v1.0.1

Published

Dirbook is a small CLI created to help index directories/projects.

Downloads

7

Readme

dirbook

Dirbook is a small CLI created to help index directories/projects.

npm install -g dirbook

printed dirbook index

  • Index directories, giving them names, short descriptions, and tags
  • Copy an indexed directory to the current directory, giving it a new name (great for small starter-projects)
  • Open an indexed directory in Finder/File Explorer
  • Use tags to organize and filter directories
  • Turn on aliasing to have dirbook manage a small subsection of your .bash_profile or .bashrc, creating aliases to cd into directories.

add

dirbook add will index the current working directory, after asking you a few questions (name, description, tags). dirbook add user flow

copy [-t --tag <tag>]

dirbook copy displays a list of all indexed directories. After selecting one and giving your new directory a name, a copy will be made in your current working directory.

open [-t --tag <tag>]

dirbook open displays a list of all indexed directories. After selecting one, the directory will be opened in the default file browsing app.

select [-t --tag <tag>]

dirbook select displays a list of all indexed directories. After selecting one or many, you will be given a few options. If more than one is chosen, their tags may be updated, or they may be deleted from dirbook. If only one is chosen, it may also be updated.

ls [-t --tag <tag>]

dirbook ls and dirbook prints all indexed directories. This is the default behavior.

alias [-o --active, -f --off, -x --prefix <prefix>, -p --path <path>]

Just calling dirbook alias will print out the current alias settings (on/off, path to write to, prefix for alias).

Aliasing is off by default, and may be turned on by running dirbook alias -o.

For aliasing to work, you will also need to give it the absolute path of the file you'd like to add aliases to. For most this will be .bash_profile or .bashrc.

Aliases will be given a prefix of dirbook- by default to avoid overriding other command, but can be changed using dirbook alias -x <prefix>

Turning aliasing on will add an alias for ever indexed directory, using the form alias <prefix><name> = 'cd <path>' Turning aliasing off will remove all aliases from

# dirbook-aliases-start
	alias dirbook-element-calc='cd /Users/nickroberts404/Development/Projects/element-calc'
	alias dirbook-thoughtjar='cd /Users/nickroberts404/Development/Projects/thoughtjar'
	alias dirbook-telegraph='cd /Users/nickroberts404/Development/Projects/Telegraph'
# dirbook-aliases-end

(Aliases will only be available after restarting the terminal, or after calling source <path>.)

reset

dirbook reset will clear dirbook and remove aliases.

Usage: dirbook [options] [command]


  Commands:

    open [options]     Open the selected directory in Finder/File Explorer.
    add                Add current directory to dirbook.
    copy [options]     Allows you to select directory to copy.
    select [options]   Allows you to select directories and perform actions.
    ls [options]       List all the things.
    alias [options]    Configure alias settings
    reset              Wipes dirbook's memory.

  Options:

    -h, --help     output usage information
    -V, --version  output the version number