144 lines
13 KiB
JSON
144 lines
13 KiB
JSON
|
{
|
||
|
"_args": [
|
||
|
[
|
||
|
{
|
||
|
"raw": "send@0.16.1",
|
||
|
"scope": null,
|
||
|
"escapedName": "send",
|
||
|
"name": "send",
|
||
|
"rawSpec": "0.16.1",
|
||
|
"spec": "0.16.1",
|
||
|
"type": "version"
|
||
|
},
|
||
|
"/home/jdaugherty/work/GT2/GT2-Android/node_modules/express"
|
||
|
]
|
||
|
],
|
||
|
"_from": "send@0.16.1",
|
||
|
"_id": "send@0.16.1",
|
||
|
"_inCache": true,
|
||
|
"_location": "/send",
|
||
|
"_nodeVersion": "6.11.3",
|
||
|
"_npmOperationalInternal": {
|
||
|
"host": "s3://npm-registry-packages",
|
||
|
"tmp": "tmp/send-0.16.1.tgz_1506713804078_0.7579168814700097"
|
||
|
},
|
||
|
"_npmUser": {
|
||
|
"name": "dougwilson",
|
||
|
"email": "doug@somethingdoug.com"
|
||
|
},
|
||
|
"_npmVersion": "5.3.0",
|
||
|
"_phantomChildren": {},
|
||
|
"_requested": {
|
||
|
"raw": "send@0.16.1",
|
||
|
"scope": null,
|
||
|
"escapedName": "send",
|
||
|
"name": "send",
|
||
|
"rawSpec": "0.16.1",
|
||
|
"spec": "0.16.1",
|
||
|
"type": "version"
|
||
|
},
|
||
|
"_requiredBy": [
|
||
|
"/express",
|
||
|
"/serve-static"
|
||
|
],
|
||
|
"_resolved": "https://registry.npmjs.org/send/-/send-0.16.1.tgz",
|
||
|
"_shasum": "a70e1ca21d1382c11d0d9f6231deb281080d7ab3",
|
||
|
"_shrinkwrap": null,
|
||
|
"_spec": "send@0.16.1",
|
||
|
"_where": "/home/jdaugherty/work/GT2/GT2-Android/node_modules/express",
|
||
|
"author": {
|
||
|
"name": "TJ Holowaychuk",
|
||
|
"email": "tj@vision-media.ca"
|
||
|
},
|
||
|
"bugs": {
|
||
|
"url": "https://github.com/pillarjs/send/issues"
|
||
|
},
|
||
|
"contributors": [
|
||
|
{
|
||
|
"name": "Douglas Christopher Wilson",
|
||
|
"email": "doug@somethingdoug.com"
|
||
|
},
|
||
|
{
|
||
|
"name": "James Wyatt Cready",
|
||
|
"email": "jcready@gmail.com"
|
||
|
},
|
||
|
{
|
||
|
"name": "Jesús Leganés Combarro",
|
||
|
"email": "piranna@gmail.com"
|
||
|
}
|
||
|
],
|
||
|
"dependencies": {
|
||
|
"debug": "2.6.9",
|
||
|
"depd": "~1.1.1",
|
||
|
"destroy": "~1.0.4",
|
||
|
"encodeurl": "~1.0.1",
|
||
|
"escape-html": "~1.0.3",
|
||
|
"etag": "~1.8.1",
|
||
|
"fresh": "0.5.2",
|
||
|
"http-errors": "~1.6.2",
|
||
|
"mime": "1.4.1",
|
||
|
"ms": "2.0.0",
|
||
|
"on-finished": "~2.3.0",
|
||
|
"range-parser": "~1.2.0",
|
||
|
"statuses": "~1.3.1"
|
||
|
},
|
||
|
"description": "Better streaming static file server with Range and conditional-GET support",
|
||
|
"devDependencies": {
|
||
|
"after": "0.8.2",
|
||
|
"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-ElCLJdJIKPk6ux/Hocwhk7NFHpI3pVm/IZOYWqUmoxcgeyM+MpxHHKhb8QmlJDX1pU6WrgaHBkVNm73Sv7uc2A==",
|
||
|
"shasum": "a70e1ca21d1382c11d0d9f6231deb281080d7ab3",
|
||
|
"tarball": "https://registry.npmjs.org/send/-/send-0.16.1.tgz"
|
||
|
},
|
||
|
"engines": {
|
||
|
"node": ">= 0.8.0"
|
||
|
},
|
||
|
"files": [
|
||
|
"HISTORY.md",
|
||
|
"LICENSE",
|
||
|
"README.md",
|
||
|
"index.js"
|
||
|
],
|
||
|
"gitHead": "3daa901cf731b86187e4449fa2c52f971e0b3dbc",
|
||
|
"homepage": "https://github.com/pillarjs/send#readme",
|
||
|
"keywords": [
|
||
|
"static",
|
||
|
"file",
|
||
|
"server"
|
||
|
],
|
||
|
"license": "MIT",
|
||
|
"maintainers": [
|
||
|
{
|
||
|
"name": "dougwilson",
|
||
|
"email": "doug@somethingdoug.com"
|
||
|
}
|
||
|
],
|
||
|
"name": "send",
|
||
|
"optionalDependencies": {},
|
||
|
"readme": "# send\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\nSend is a library for streaming files from the file system as a http response\nsupporting partial responses (Ranges), conditional-GET negotiation (If-Match,\nIf-Unmodified-Since, If-None-Match, If-Modified-Since), high test coverage,\nand granular events which may be leveraged to take appropriate actions in your\napplication or framework.\n\nLooking to serve up entire folders mapped to URLs? Try [serve-static](https://www.npmjs.org/package/serve-static).\n\n## Installation\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```bash\n$ npm install send\n```\n\n## API\n\n<!-- eslint-disable no-unused-vars -->\n\n```js\nvar send = require('send')\n```\n\n### send(req, path, [options])\n\nCreate a new `SendStream` for the given path to send to a `res`. The `req` is\nthe Node.js HTTP request and the `path` is a urlencoded path to send (urlencoded,\nnot the actual file-system path).\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\nSet 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 when set\nto \"deny\").\n\n - `'allow'` No special treatment for dotfiles.\n - `'deny'` Send a 403 for any request for a dotfile.\n - `'ignore'` Pretend like the dotfile does not exist and 404.\n\nThe default value is _similar_ to `'ignore'`, with the exception that\nthis default will not ignore the files within a directory that begins\nwith a dot, for backward-compatibility.\n\n##### end\n\nByte offset at which the stream ends, defaults to the length of the file\nminus 1. The end is inclusive in the stream, meaning `end: 3` will include\nthe 4th byte in the stream.\n\n##### etag\n\nEnable or disable etag generation, defaults to true.\n\n##### extensions\n\nIf a given file doesn't exist, try appending one of the given extensions,\nin the given order. By default, this is disabled (set to `false`). An\nexample value that will serve extension-less HTML files: `['html', 'htm']`.\nThis is skipped if the requested file already has an extension.\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 send supports \"index.html\" files, to disable this\nset `false` or to supply a new index pass a string or an array\nin preferred order.\n\n##### lastModified\n\nEnable or disable `Last-Modified` header, defaults to true. Uses the file\nsystem's last modified value.\n\n##### maxAge\n\nProvide a max-age in milliseconds for http caching, defaults to 0.\nThis can also be a string accepted by the\n[ms](https://www.npmjs.org/package/ms#readme) module.\n\n##### root\n\nServe files relative to `path`.\n\n##### start\n\nByte offset at which the stream starts, defaults to 0. The start is inclusive,\nmeaning
|
||
|
"readmeFilename": "README.md",
|
||
|
"repository": {
|
||
|
"type": "git",
|
||
|
"url": "git+https://github.com/pillarjs/send.git"
|
||
|
},
|
||
|
"scripts": {
|
||
|
"lint": "eslint --plugin markdown --ext js,md .",
|
||
|
"test": "mocha --check-leaks --reporter spec --bail",
|
||
|
"test-ci": "istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --check-leaks --reporter spec",
|
||
|
"test-cov": "istanbul cover node_modules/mocha/bin/_mocha -- --check-leaks --reporter dot"
|
||
|
},
|
||
|
"version": "0.16.1"
|
||
|
}
|