node-ls

bash command ls in pure javascript

node-ls

bash command ls in pure javascript

$ npm install node-ls
var ls = require('ls');
ls('./', '--all', function(erlist) {
  // here you could get a files list of the current directory 
})
  • -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

MIT