A WIP file system explorer element.
git clone git://github.com/shama/fs-explorer &&cd fs-explorer npm i npm startVisit http://localhost:9966
The example currently loads example/example-fs-tree.json as a mock file system but will hopefully be connected to dat soon.
https://shama.github.io/fs-explorer
Has not yet been published to npm. Please
git cloneand runnpm linkthen in your project runnpm link fs-explorer. This project is still experimental but should be published soon.
varexplorer=require('fs-explorer')// Build a file treevarfiles=[{path: 'bears',type: 'folder',mtime: newDate(),children: [{path: 'bears/grizzly.js',type: 'file',mtime: newDate(),}]}]// Render the element and append to pagevarelement=explorer(files)document.body.appendChild(element)