node package manager

node-ls

bash command ls in pure javascript

node-ls Build Status

bash command ls in pure javascript

Installation

$ npm install node-ls

API

var ls = require('ls');
ls('./', '--all', 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 ~

TO Be Continue

LICENSE

MIT