1.0.1 • Published 8 years ago

windows-ls v1.0.1

Weekly downloads
8
License
MIT
Repository
github
Last release
8 years ago

windows-ls

Simple implementation of the ls command for windows.

Travis NPM version devDependency Status devDependency Status

Installation

$ npm i windows-ls -g

Run the command line:

$ ls [OPTIONS] [DIR]

Flags

List information about the FILEs (the current directory by default).

We can use the following arguments to control the search:

FlagDescription
-ado not ignore entries starting with .
-Rist subdirectories recursively
-luse a long listing format
-Fappend / indicator to directories and * to executable files
-hprint sizes in human-readable format (e.g., 1K, 234M, 2G)
-pappend / indicator to directories

Bonus

And the bonus will be able to use the glob-patterns that begin with an asterisk:

$ ls *.js
$ ls **/.txt

Examples usage

# Options
$ ls -a -l -R
$ ls -alR

# Dirs
$ ls lib
$ ls lib -al
$ ls test -lR

# Glob
$ ls *.js
$ ls *.{js,json}
$ ls test/**/*
$ ls test/**/* -lh

Changelog

  • 1.0.1 — Fix error operation not permitted.
  • 1.0.0 — First stable version.
  • 0.1.3 — Added XO and fix tests.
  • 0.1.2 — Update tests and refactoring variables.
  • 0.1.1 — Initialization().