{
  "name": "serve-index",
  "description": "Serve directory listings",
  "version": "1.1.1",
  "author": {
    "name": "Douglas Christopher Wilson",
    "email": "doug@somethingdoug.com"
  },
  "license": "MIT",
  "repository": {
    "type": "git",
    "url": "git://github.com/expressjs/serve-index"
  },
  "dependencies": {
    "accepts": "1.0.3",
    "batch": "0.5.0"
  },
  "devDependencies": {
    "istanbul": "0.2.10",
    "mocha": "~1.20.0",
    "should": "~4.0.0",
    "supertest": "~0.13.0"
  },
  "engines": {
    "node": ">= 0.8.0"
  },
  "scripts": {
    "test": "mocha --reporter dot",
    "test-cov": "istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot",
    "test-travis": "istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter spec"
  },
  "readme": "# serve-index\r\n\r\n[![NPM version](https://badge.fury.io/js/serve-index.svg)](http://badge.fury.io/js/serve-index)\r\n[![Build Status](https://travis-ci.org/expressjs/serve-index.svg?branch=master)](https://travis-ci.org/expressjs/serve-index)\r\n[![Coverage Status](https://img.shields.io/coveralls/expressjs/serve-index.svg?branch=master)](https://coveralls.io/r/expressjs/serve-index)\r\n\r\n  Serves pages that contain directory listings for a given path.\r\n\r\n## API\r\n\r\n```js\r\nvar express   = require('express')\r\nvar serveIndex = require('serve-index')\r\n\r\nvar app = express()\r\n\r\napp.use(serveIndex('public/ftp', {'icons': true}))\r\napp.listen()\r\n```\r\n\r\n### serveIndex(path, options)\r\n\r\n  Returns middlware that serves an index of the directory in the given `path`.\r\n\r\n#### Options\r\n\r\n  - `hidden` - display hidden (dot) files. Defaults to `false`.\r\n  - `view` - display mode. `tiles` and `details` are available. Defaults to `tiles`.\r\n  - `icons` - display icons. Defaults to `false`.\r\n  - `filter` - Apply this filter function to files. Defaults to `false`.\r\n  - `stylesheet` - Optional path to a CSS stylesheet. Defaults to a built-in stylesheet.\r\n  - `template` - Optional path to an HTML template. Defaults to a built-in template.\r\n    - The following tokens are replaced in templates:\r\n    - `{directory}` with the name of the directory.\r\n    - `{files}` with the HTML of an unordered list of file links.\r\n    - `{linked-path}` with the HTML of a link to the directory.\r\n    - `{style}` with the specified stylesheet and embedded images.\r\n\r\n## License\r\n\r\nThe MIT License (MIT)\r\n\r\nCopyright (c) 2014 Douglas Christopher Wilson\r\n\r\nPermission is hereby granted, free of charge, to any person obtaining a copy\r\nof this software and associated documentation files (the \"Software\"), to deal\r\nin the Software without restriction, including without limitation the rights\r\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\r\ncopies of the Software, and to permit persons to whom the Software is\r\nfurnished to do so, subject to the following conditions:\r\n\r\nThe above copyright notice and this permission notice shall be included in\r\nall copies or substantial portions of the Software.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\r\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\r\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\r\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\r\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\r\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\r\nTHE SOFTWARE.\r\n\r\nThe [Silk](http://www.famfamfam.com/lab/icons/silk/) icons are created\r\nby/copyright of [FAMFAMFAM](http://www.famfamfam.com/).\r\n",
  "readmeFilename": "Readme.md",
  "bugs": {
    "url": "https://github.com/expressjs/serve-index/issues"
  },
  "_id": "serve-index@1.1.1",
  "_from": "serve-index@*"
}
