{"_id":"directory-index-html","_rev":"7-950912f6fabf8f9b498ef3fe8c2ece4f","name":"directory-index-html","description":"Make an plain html page containing a directory listing","dist-tags":{"latest":"2.1.0"},"versions":{"1.0.0":{"name":"directory-index-html","version":"1.0.0","description":"Make an plain html page containing a directory listing","main":"index.js","dependencies":{},"devDependencies":{"standard":"^8.6.0"},"scripts":{"test":"standard"},"repository":{"type":"git","url":"git+https://github.com/mafintosh/directory-index-html.git"},"author":{"name":"Mathias Buus","url":"@mafintosh"},"license":"MIT","bugs":{"url":"https://github.com/mafintosh/directory-index-html/issues"},"homepage":"https://github.com/mafintosh/directory-index-html","gitHead":"f028fecb601bd85eee1fb8700f372e3c29c811dd","_id":"directory-index-html@1.0.0","_shasum":"f6ce735d7702ea6878c604668fc072ef2bcd4442","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.9.5","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"dist":{"shasum":"f6ce735d7702ea6878c604668fc072ef2bcd4442","tarball":"https://registry.npmjs.org/directory-index-html/-/directory-index-html-1.0.0.tgz","integrity":"sha512-lVdHhseJE76QYUHFloPFTfBfPrD+0SnMLNRutyhFnJHV+JMy78Ig17ReycMPhY4bE18pbZ7jS8CjZlyd+ByfTQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFvr+hSsdd6GNL6kYXDc74Ujl+heRDvrZRchG4JpKQPpAiALz5H3bPbj+FbqGnfdKYw/LvEot4PHQtCLL4F6BIl1WQ=="}]},"maintainers":[{"name":"mafintosh","email":"mathiasbuus@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/directory-index-html-1.0.0.tgz_1486931407157_0.5396659865509719"}},"1.0.1":{"name":"directory-index-html","version":"1.0.1","description":"Make an plain html page containing a directory listing","main":"index.js","dependencies":{},"devDependencies":{"standard":"^8.6.0"},"scripts":{"test":"standard"},"repository":{"type":"git","url":"git+https://github.com/mafintosh/directory-index-html.git"},"author":{"name":"Mathias Buus","url":"@mafintosh"},"license":"MIT","bugs":{"url":"https://github.com/mafintosh/directory-index-html/issues"},"homepage":"https://github.com/mafintosh/directory-index-html","gitHead":"4de92482324f146ebe99dd000b12e92d2822c4e7","_id":"directory-index-html@1.0.1","_shasum":"cbb14b46e9ff869760e1770840a7b11d7e74747f","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.9.5","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"dist":{"shasum":"cbb14b46e9ff869760e1770840a7b11d7e74747f","tarball":"https://registry.npmjs.org/directory-index-html/-/directory-index-html-1.0.1.tgz","integrity":"sha512-B/sKd04LSEr7KukspGr9MfzafygRAuAge9PuG29a61xl61acBcehAN9B1mwL8I1TsgUR9LFkv2byG4T1QmcVvA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDJ5MxCgmVbyIbDkb9sXBDTeIxTX3Gdkp9U2OvdQ6kP0wIgbtlenLyzYxBe2Roq7Wt4LNZu9ay5fyNyG4LqQLDQIF8="}]},"maintainers":[{"name":"mafintosh","email":"mathiasbuus@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/directory-index-html-1.0.1.tgz_1486931762565_0.9938319406937808"}},"1.1.0":{"name":"directory-index-html","version":"1.1.0","description":"Make an plain html page containing a directory listing","main":"index.js","dependencies":{},"devDependencies":{"standard":"^8.6.0"},"scripts":{"test":"standard"},"repository":{"type":"git","url":"git+https://github.com/mafintosh/directory-index-html.git"},"author":{"name":"Mathias Buus","url":"@mafintosh"},"license":"MIT","bugs":{"url":"https://github.com/mafintosh/directory-index-html/issues"},"homepage":"https://github.com/mafintosh/directory-index-html","gitHead":"bfcc940a07120e56cfb5930500be6b5b881bdf8f","_id":"directory-index-html@1.1.0","_shasum":"538895815df72102290798914fa3df414dd96d69","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.9.5","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"dist":{"shasum":"538895815df72102290798914fa3df414dd96d69","tarball":"https://registry.npmjs.org/directory-index-html/-/directory-index-html-1.1.0.tgz","integrity":"sha512-mevOxTYn0PnfDaM+e5QjsCj9h3KldmY8iNa/vVyqtLbJCaREEpyko9FAAU6aH+zk0KUFOIDZn1Ss0uD/b1c3Nw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGjF2mOGSOsLyGH5T8Qw/iRnVPWglKmxmMVp8qPx/m8aAiEAg4P3anVTgST7fZ4hZuXq4/ogz7t58JFJCYFKcbQnmHE="}]},"maintainers":[{"name":"mafintosh","email":"mathiasbuus@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/directory-index-html-1.1.0.tgz_1486933111736_0.4036656063981354"}},"1.2.0":{"name":"directory-index-html","version":"1.2.0","description":"Make an plain html page containing a directory listing","main":"index.js","dependencies":{},"devDependencies":{"standard":"^8.6.0"},"scripts":{"test":"standard"},"repository":{"type":"git","url":"git+https://github.com/mafintosh/directory-index-html.git"},"author":{"name":"Mathias Buus","url":"@mafintosh"},"license":"MIT","bugs":{"url":"https://github.com/mafintosh/directory-index-html/issues"},"homepage":"https://github.com/mafintosh/directory-index-html","gitHead":"9afb50e57df18667f34ef4ca80fda6975ce8fd02","_id":"directory-index-html@1.2.0","_shasum":"636752719c62eedd263120fc23480f325aa836d4","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.9.5","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"dist":{"shasum":"636752719c62eedd263120fc23480f325aa836d4","tarball":"https://registry.npmjs.org/directory-index-html/-/directory-index-html-1.2.0.tgz","integrity":"sha512-HMi3X50a5xjwzS+7hdg8MtYe0FgnmXW+6cSZ21Ogi7x2WXpgL4yJ9b5tN2SQEIJCzk5uxcHqEk0zq87O9H6JRg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIC/Nndrp+0bFcNb2sSUtLYmw5eqagbUoc/bjePqlSudxAiEAowY/6g1/5hxvlLZ8qzgtuWO8er3+r3hyMNh4FPLCM/g="}]},"maintainers":[{"name":"mafintosh","email":"mathiasbuus@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/directory-index-html-1.2.0.tgz_1488980455993_0.24783162586390972"}},"2.0.0":{"name":"directory-index-html","version":"2.0.0","description":"Make an plain html page containing a directory listing","main":"index.js","dependencies":{},"devDependencies":{"standard":"^8.6.0"},"scripts":{"test":"standard"},"repository":{"type":"git","url":"git+https://github.com/mafintosh/directory-index-html.git"},"author":{"name":"Mathias Buus","url":"@mafintosh"},"license":"MIT","bugs":{"url":"https://github.com/mafintosh/directory-index-html/issues"},"homepage":"https://github.com/mafintosh/directory-index-html","gitHead":"09536b356bbed664fbe000d2556caec9ea9a47fa","_id":"directory-index-html@2.0.0","_shasum":"8db1f9525206aa1bb31923f7e1a4f380a8c1e1f5","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.9.5","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"dist":{"shasum":"8db1f9525206aa1bb31923f7e1a4f380a8c1e1f5","tarball":"https://registry.npmjs.org/directory-index-html/-/directory-index-html-2.0.0.tgz","integrity":"sha512-4+Kuf4gq2ZvuRyO0tt7AZeWS/ns2XyplQ5LDoHepWr805LtWqgmkkfv7DtNNDzIvuS7r83mJVKpUlarPwq4wKg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIG42Bo1zXlL2nMmFhBpVFbXqTPG0yJk9KtIU6GZIaZxbAiBi56co1M3yEU3PiJMjNGxuviK9oSxUki/tcfoEhoMm1w=="}]},"maintainers":[{"name":"mafintosh","email":"mathiasbuus@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/directory-index-html-2.0.0.tgz_1490213163974_0.527332182507962"}},"2.1.0":{"name":"directory-index-html","version":"2.1.0","description":"Make an plain html page containing a directory listing","main":"index.js","dependencies":{},"devDependencies":{"standard":"^8.6.0"},"scripts":{"test":"standard"},"repository":{"type":"git","url":"git+https://github.com/mafintosh/directory-index-html.git"},"author":{"name":"Mathias Buus","url":"@mafintosh"},"license":"MIT","bugs":{"url":"https://github.com/mafintosh/directory-index-html/issues"},"homepage":"https://github.com/mafintosh/directory-index-html","gitHead":"04629db60f294acaad26d0710aa02005bcd29b14","_id":"directory-index-html@2.1.0","_shasum":"4d5afc5187edba67ec6ab0e55f6422a0e2cb7338","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.9.5","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"dist":{"shasum":"4d5afc5187edba67ec6ab0e55f6422a0e2cb7338","tarball":"https://registry.npmjs.org/directory-index-html/-/directory-index-html-2.1.0.tgz","integrity":"sha512-ym5rmM/qbVJ2+H/6DhThECBlGsNlQOx3yi4CENr3SdDaVH2K5rE9guslLiSwx1YfDSElQuRJ1ugX/ReR3QNZJQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDKaz8Ja+HKtxA3dVk9X0eetwVl3k7qnxt4nODDfHhvFgIgf/PoxTkK/iZXA1xSozr4q1zi//TNGi4Q7Hf5ZWjlHvc="}]},"maintainers":[{"name":"mafintosh","email":"mathiasbuus@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/directory-index-html-2.1.0.tgz_1490634163927_0.6587782280985266"}}},"readme":"# directory-index-html\n\nMake an plain html page containing a directory listing.\nSimilar in look and feel to NGINX's listing page.\n\n```\nnpm install directory-index-html\n```\n\n## Usage\n\n``` js\nvar toHTML = require('directory-index-html')\n\nvar entries = [{\n  name: 'test',\n  size: 24424,\n  mtime: new Date()\n}, {\n  name: 'a-dir/',\n  mtime: new Date()\n}]\n\nconsole.log(toHTML('/foo/bar', entries))\n```\n\n## API\n\n#### `var html = toHTML(dir, entries)`\n\nRender a directory name and listing to an plain HTML string.\n\n`dir` should be a string containing the directory name.\n\n`entries` should be an array of entries that are similar to this\n\n``` js\n{\n  name: 'name-of-file-or-dir',\n  size: 42424, // size in bytes\n  mtime: new Date() // when was this modified\n}\n```\n\nTo figure out if an entry is a directory the module will one of the following things:\n\n* Check if the path ends with a `/`\n* See if `entry.type === 'directory'`\n* See if `entry.mode` specifies a directory\n\n## Demo\n\nThere is a small demo server bundled in the repo that serves a directory listing of your\ncurrent working directory.\n\nTo try it out, run `node demo.js` and visit `http://localhost:8080`.\n\nIt should show something like this:\n\n![demo.png](demo.png)\n\n## License\n\nMIT\n","maintainers":[{"name":"mafintosh","email":"mathiasbuus@gmail.com"}],"time":{"modified":"2022-06-15T04:36:21.442Z","created":"2017-02-12T20:30:07.791Z","1.0.0":"2017-02-12T20:30:07.791Z","1.0.1":"2017-02-12T20:36:03.224Z","1.1.0":"2017-02-12T20:58:32.393Z","1.2.0":"2017-03-08T13:40:56.592Z","2.0.0":"2017-03-22T20:06:04.627Z","2.1.0":"2017-03-27T17:02:44.467Z"},"homepage":"https://github.com/mafintosh/directory-index-html","repository":{"type":"git","url":"git+https://github.com/mafintosh/directory-index-html.git"},"author":{"name":"Mathias Buus","url":"@mafintosh"},"bugs":{"url":"https://github.com/mafintosh/directory-index-html/issues"},"license":"MIT","readmeFilename":"README.md"}