0.10.0 • Published 5 years ago

ls-silver-spork v0.10.0

Weekly downloads
4
License
MIT
Repository
github
Last release
5 years ago

LS for CMD

"Any application that can be written in JavaScript, will eventually be written in JavaScript." ~ Atwood's Law

I wanted my own simple implementation of "ls" for windows command prompt because I got tired of seeing 'ls' is not recognized as an internal or external command, operable program or batch file. This is mainly a learning experience for me, but maybe someone else will find value.

Quick-Start

Note: Only tested in Command Prompt, not PowerShell or MAC/Linux shells; since they have their own 'ls' implementations

NODE

npm install -g ls-silver-spork

COLOURS

Edit config/config.json if you're not a fan of cotton candy

Usage

ls [-o --options] [directory]

OPTIONDESCRIPTIONNOTES
-d --dir'prints directoriescannot be used with -f or -s
-f --fileprints filescannot be used with -d
-a, --allshows hidden files & directories
-e, --ext <extension>only returns specified extensioncannot be used with -d
-s, --sizeprints file sizescannot be used with -d
-c, --columnsprints as one or two columns
-C, --configconfigure colours (more later)overrides all other flags

Notes

Trivia: GitHub recommended 'silver-spork' as a repository name, and it fit the kind of amateur fork of LS I was going for. This is mainly a personal project to familiarize myself with npm & git, but if anyone likes this, feel free to open a feature or enhancement request on the issues board over at my git repo.

TODO

Goals for initial "release" - V 1.0.0

  • Update options to override instead of exiting with error
  • Re-work output formatting
  • Add configuration functionality - Change colors - Default options

Known Bugs

The default formatting has some spacing issues where a space will appear at the beginning of the line, and sometimes the program won't catch a formatting error on the last line. A complete rework is preferable to a band-aid fix.

MIT (c) 2020 Tristan Collicott