113 lines
11 KiB
JSON
113 lines
11 KiB
JSON
|
{
|
||
|
"_args": [
|
||
|
[
|
||
|
{
|
||
|
"raw": "serve-static@1.13.1",
|
||
|
"scope": null,
|
||
|
"escapedName": "serve-static",
|
||
|
"name": "serve-static",
|
||
|
"rawSpec": "1.13.1",
|
||
|
"spec": "1.13.1",
|
||
|
"type": "version"
|
||
|
},
|
||
|
"/Volumes/2009-SSD/GT2/GT2-iOS/node_modules/express"
|
||
|
]
|
||
|
],
|
||
|
"_from": "serve-static@1.13.1",
|
||
|
"_id": "serve-static@1.13.1",
|
||
|
"_inCache": true,
|
||
|
"_location": "/serve-static",
|
||
|
"_nodeVersion": "6.11.3",
|
||
|
"_npmOperationalInternal": {
|
||
|
"host": "s3://npm-registry-packages",
|
||
|
"tmp": "tmp/serve-static-1.13.1.tgz_1506715867957_0.268530584173277"
|
||
|
},
|
||
|
"_npmUser": {
|
||
|
"name": "dougwilson",
|
||
|
"email": "doug@somethingdoug.com"
|
||
|
},
|
||
|
"_npmVersion": "5.3.0",
|
||
|
"_phantomChildren": {},
|
||
|
"_requested": {
|
||
|
"raw": "serve-static@1.13.1",
|
||
|
"scope": null,
|
||
|
"escapedName": "serve-static",
|
||
|
"name": "serve-static",
|
||
|
"rawSpec": "1.13.1",
|
||
|
"spec": "1.13.1",
|
||
|
"type": "version"
|
||
|
},
|
||
|
"_requiredBy": [
|
||
|
"/express"
|
||
|
],
|
||
|
"_resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.13.1.tgz",
|
||
|
"_shasum": "4c57d53404a761d8f2e7c1e8a18a47dbf278a719",
|
||
|
"_shrinkwrap": null,
|
||
|
"_spec": "serve-static@1.13.1",
|
||
|
"_where": "/Volumes/2009-SSD/GT2/GT2-iOS/node_modules/express",
|
||
|
"author": {
|
||
|
"name": "Douglas Christopher Wilson",
|
||
|
"email": "doug@somethingdoug.com"
|
||
|
},
|
||
|
"bugs": {
|
||
|
"url": "https://github.com/expressjs/serve-static/issues"
|
||
|
},
|
||
|
"dependencies": {
|
||
|
"encodeurl": "~1.0.1",
|
||
|
"escape-html": "~1.0.3",
|
||
|
"parseurl": "~1.3.2",
|
||
|
"send": "0.16.1"
|
||
|
},
|
||
|
"description": "Serve static files",
|
||
|
"devDependencies": {
|
||
|
"eslint": "3.19.0",
|
||
|
"eslint-config-standard": "10.2.1",
|
||
|
"eslint-plugin-import": "2.7.0",
|
||
|
"eslint-plugin-markdown": "1.0.0-beta.6",
|
||
|
"eslint-plugin-node": "5.2.0",
|
||
|
"eslint-plugin-promise": "3.5.0",
|
||
|
"eslint-plugin-standard": "3.0.1",
|
||
|
"istanbul": "0.4.5",
|
||
|
"mocha": "2.5.3",
|
||
|
"supertest": "1.1.0"
|
||
|
},
|
||
|
"directories": {},
|
||
|
"dist": {
|
||
|
"integrity": "sha512-hSMUZrsPa/I09VYFJwa627JJkNs0NrfL1Uzuup+GqHfToR2KcsXFymXSV90hoyw3M+msjFuQly+YzIH/q0MGlQ==",
|
||
|
"shasum": "4c57d53404a761d8f2e7c1e8a18a47dbf278a719",
|
||
|
"tarball": "https://registry.npmjs.org/serve-static/-/serve-static-1.13.1.tgz"
|
||
|
},
|
||
|
"engines": {
|
||
|
"node": ">= 0.8.0"
|
||
|
},
|
||
|
"files": [
|
||
|
"LICENSE",
|
||
|
"HISTORY.md",
|
||
|
"index.js"
|
||
|
],
|
||
|
"gitHead": "f6f76136aa967f917886730c57efd4c9d3bc12f7",
|
||
|
"homepage": "https://github.com/expressjs/serve-static#readme",
|
||
|
"license": "MIT",
|
||
|
"maintainers": [
|
||
|
{
|
||
|
"name": "dougwilson",
|
||
|
"email": "doug@somethingdoug.com"
|
||
|
}
|
||
|
],
|
||
|
"name": "serve-static",
|
||
|
"optionalDependencies": {},
|
||
|
"readme": "# serve-static\n\n[![NPM Version][npm-image]][npm-url]\n[![NPM Downloads][downloads-image]][downloads-url]\n[![Linux Build][travis-image]][travis-url]\n[![Windows Build][appveyor-image]][appveyor-url]\n[![Test Coverage][coveralls-image]][coveralls-url]\n[![Gratipay][gratipay-image]][gratipay-url]\n\n## Install\n\nThis is a [Node.js](https://nodejs.org/en/) module available through the\n[npm registry](https://www.npmjs.com/). Installation is done using the\n[`npm install` command](https://docs.npmjs.com/getting-started/installing-npm-packages-locally):\n\n```sh\n$ npm install serve-static\n```\n\n## API\n\n<!-- eslint-disable no-unused-vars -->\n\n```js\nvar serveStatic = require('serve-static')\n```\n\n### serveStatic(root, options)\n\nCreate a new middleware function to serve files from within a given root\ndirectory. The file to serve will be determined by combining `req.url`\nwith the provided root directory. When a file is not found, instead of\nsending a 404 response, this module will instead call `next()` to move on\nto the next middleware, allowing for stacking and fall-backs.\n\n#### Options\n\n##### acceptRanges\n\nEnable or disable accepting ranged requests, defaults to true.\nDisabling this will not send `Accept-Ranges` and ignore the contents\nof the `Range` request header.\n\n##### cacheControl\n\nEnable or disable setting `Cache-Control` response header, defaults to\ntrue. Disabling this will ignore the `immutable` and `maxAge` options.\n\n##### dotfiles\n\n Set how \"dotfiles\" are treated when encountered. A dotfile is a file\nor directory that begins with a dot (\".\"). Note this check is done on\nthe path itself without checking if the path actually exists on the\ndisk. If `root` is specified, only the dotfiles above the root are\nchecked (i.e. the root itself can be within a dotfile when set\nto \"deny\").\n\n - `'allow'` No special treatment for dotfiles.\n - `'deny'` Deny a request for a dotfile and 403/`next()`.\n - `'ignore'` Pretend like the dotfile does not exist and 404/`next()`.\n\nThe default value is similar to `'ignore'`, with the exception that this\ndefault will not ignore the files within a directory that begins with a dot.\n\n##### etag\n\nEnable or disable etag generation, defaults to true.\n\n##### extensions\n\nSet file extension fallbacks. When set, if a file is not found, the given\nextensions will be added to the file name and search for. The first that\nexists will be served. Example: `['html', 'htm']`.\n\nThe default value is `false`.\n\n##### fallthrough\n\nSet the middleware to have client errors fall-through as just unhandled\nrequests, otherwise forward a client error. The difference is that client\nerrors like a bad request or a request to a non-existent file will cause\nthis middleware to simply `next()` to your next middleware when this value\nis `true`. When this value is `false`, these errors (even 404s), will invoke\n`next(err)`.\n\nTypically `true` is desired such that multiple physical directories can be\nmapped to the same web address or for routes to fill in non-existent files.\n\nThe value `false` can be used if this middleware is mounted at a path that\nis designed to be strictly a single file system directory, which allows for\nshort-circuiting 404s for less overhead. This middleware will also reply to\nall methods.\n\nThe default value is `true`.\n\n##### immutable\n\nEnable or diable the `immutable` directive in the `Cache-Control` response\nheader, defaults to `false`. If set to `true`, the `maxAge` option should\nalso be specified to enable caching. The `immutable` directive will prevent\nsupported clients from making conditional requests during the life of the\n`maxAge` option to check if the file has changed.\n\n##### index\n\nBy default this module will send \"index.html\" files in response to a request\non a directory. To disable this set `false` or to supply a new index pass a\nstring or an array in preferred order.\n\n##### lastModified\n\nEnable or disable `Last-Modified` header, defaults to true. Uses the file\nsystem's last modified
|
||
|
"readmeFilename": "README.md",
|
||
|
"repository": {
|
||
|
"type": "git",
|
||
|
"url": "git+https://github.com/expressjs/serve-static.git"
|
||
|
},
|
||
|
"scripts": {
|
||
|
"lint": "eslint --plugin markdown --ext js,md .",
|
||
|
"test": "mocha --reporter spec --bail --check-leaks test/",
|
||
|
"test-ci": "istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter spec --check-leaks test/",
|
||
|
"test-cov": "istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot --check-leaks test/"
|
||
|
},
|
||
|
"version": "1.13.1"
|
||
|
}
|