html-ls

2.1.0 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i html-ls

Weekly Downloads

18

Version

2.1.0

License

MIT

Unpacked Size

8.73 kB

Total Files

10

Last publish

Collaborators

  • jarofghosts