Skip to content

A better LS command to log out directory structures

Notifications You must be signed in to change notification settings

jacoblockett/bls

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Better LS

Just a simple command-line function written with Node.js to make ls'in a little bit prettier. You'll want to have Node.js and NPM installed on your machine to use this command. If you don't have them, go here.

Once you're setup is ready, use the following command:

npm i -g better-ls

Here's the gist of what you can do:

Usage: bls [options] [directory] [depth]

Arguments:
  directory      the directory to list out (default = cwd)
  depth          how deep to list          (default = 1)

Options:
  -v, --version  output the version number
  -s, --size     boolean flag to calculate the size of each file/directory
  -h, --help     display help for command

The arguments directory and depth will always be read left to right. If you provide a number as the first argument, bls will first determine if it leads to a directory. If that fails, it will assume its a depth argument. The directory argument can also be relative or absolute.

⚠️ Using the size flag will give you sizes of each directory and file, but beware, it's a heavy process when your requested directory has a lot of files to calculate. If used, your request may hang for a couple of seconds. Grab a snack or something, idk.

About

A better LS command to log out directory structures

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published