bash-ls

0.9.4 • Public • Published

bash-ls

bash command ls in pure javascript

Installation

$ npm install -g bash-ls

Command Line

Run on Terminal

$ ls .

Output:

[
    "bin.js",
    "index.js",
    "node_modules",
    "package.json",
    "README.md",
    "test"
]

API

var ls = require('bash-ls');
ls('./', function(er, list) {
  // here you could get a files list of the current directory
})

Support Options

  • -A, almost-all: do not list implied . and ..

  • -a, --all: do not ignore entries starting with .

  • -B, --ignore-backups: do not list implied entries ending with ~

LICENSE

MIT

Readme

Keywords

Package Sidebar

Install

npm i bash-ls

Weekly Downloads

5

Version

0.9.4

License

none

Last publish

Collaborators

  • vunb