yo-fs
A client-side modular, stream-friendly ui browser widget for navigating directories, built with yo-yo.
api
yofs(path, entries, onclick)
path
: the directory or filename to displayentries
: a list of entries withname
,size
,modified
,createReadStream
onclick
: fires when a folder, file, or back button is clicked.
example
var yofs = var yo = var entries = { console} // only create the top-level element oncevar el = documentbody // update the tree's internal html widget using yo { var fresh = tree yo} var stream = //stream that gives me some data... stream