2.1.0 • Published 4 years ago

html-ls v2.1.0

Weekly downloads
9
License
MIT
Repository
github
Last release
4 years ago

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
  , transformHref: str => str // function to transform href values
  , transformLinkText: str => str // function to transform link text
}

license

MIT

2.1.0

4 years ago

2.0.0

9 years ago

1.0.1

10 years ago

1.0.0

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago

0.0.8

10 years ago

0.0.7

11 years ago

0.0.6

11 years ago

0.0.5

11 years ago

0.0.4

11 years ago

0.0.3

11 years ago

0.0.2

11 years ago

0.0.1

11 years ago