stream htmlified directory list
JavaScript
Switch branches/tags
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
test sort entities, more options, cleanup May 1, 2014
.travis.yml update travis config Apr 16, 2015
LICENSE sort entities, more options, cleanup May 1, 2014
README.md use through2 Apr 16, 2015
index.js use through2 Apr 16, 2015
package.json 2.0.0 Apr 16, 2015

README.md

html-ls

Build Status npm install

pretty print directory list in html

usage

var htmlls = require('html-ls')

htmlls('/var/www').pipe(process.stdout)

options

the optional second argument can contain an options object looking something like this (with defaults noted):

{
    hideDot: false // hide dotfiles from list
  , showUp: false // show `..` at the top
  , dirsFirst: false // put dirs at the top of the list, then files
  , parentTag: 'ul' // opening tag for list
  , childTag: 'li' // child element tag
}

license

MIT