html-ls
v2.1.0
Published
html ls
Downloads
59
Readme
html-ls
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
, transformHref: str => str // function to transform href values
, transformLinkText: str => str // function to transform link text
}
license
MIT