package.json
5.0 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
{
"_args": [
[
{
"raw": "koa-multer@^1.0.2",
"scope": null,
"escapedName": "koa-multer",
"name": "koa-multer",
"rawSpec": "^1.0.2",
"spec": ">=1.0.2 <2.0.0",
"type": "range"
},
"/Users/fzy/project/koa2_Sequelize_project"
]
],
"_from": "koa-multer@>=1.0.2 <2.0.0",
"_id": "koa-multer@1.0.2",
"_inCache": true,
"_location": "/koa-multer",
"_nodeVersion": "8.2.1",
"_npmOperationalInternal": {
"host": "s3://npm-registry-packages",
"tmp": "tmp/koa-multer-1.0.2.tgz_1501989834443_0.8880280549637973"
},
"_npmUser": {
"name": "fundon",
"email": "cfddream@gmail.com"
},
"_npmVersion": "5.3.0",
"_phantomChildren": {},
"_requested": {
"raw": "koa-multer@^1.0.2",
"scope": null,
"escapedName": "koa-multer",
"name": "koa-multer",
"rawSpec": "^1.0.2",
"spec": ">=1.0.2 <2.0.0",
"type": "range"
},
"_requiredBy": [
"#USER",
"/"
],
"_resolved": "https://registry.npmjs.org/koa-multer/-/koa-multer-1.0.2.tgz",
"_shasum": "d38f7ffd1db97b1aad33e7774732f000ebd67259",
"_shrinkwrap": null,
"_spec": "koa-multer@^1.0.2",
"_where": "/Users/fzy/project/koa2_Sequelize_project",
"author": {
"name": "Fangdun Cai",
"email": "cfddream@gmail.com"
},
"bugs": {
"url": "https://github.com/koa-modules/multer/issues"
},
"dependencies": {
"multer": "1.3.0"
},
"description": "Middleware for handling `multipart/form-data` for koa.",
"devDependencies": {
"concat-stream": "^1",
"form-data": "^2",
"fs-temp": "^1",
"isparta": "^4",
"koa": "^2",
"koa-router": "^7",
"mocha": "^3",
"on-finished": "^2",
"rimraf": "^2",
"testdata-w3c-json-form": "^0"
},
"directories": {},
"dist": {
"integrity": "sha512-0kFzN4atVd+9oiG+4fYxQ9S2T3dPhKNvmhITIY606Qn9wLEmfhW0DhSpOzRYhddN//4rh/TCK95TMtflmFa5lA==",
"shasum": "d38f7ffd1db97b1aad33e7774732f000ebd67259",
"tarball": "https://registry.npmjs.org/koa-multer/-/koa-multer-1.0.2.tgz"
},
"engines": {
"node": ">= 4"
},
"files": [
"History.md",
"LICENSE",
"README.md",
"index.js"
],
"gitHead": "9fffcb94fbe2fe1f3b1f4948fac116a74861d853",
"homepage": "https://github.com/koa-modules/multer#readme",
"keywords": [
"form",
"post",
"multipart",
"form-data",
"formdata",
"koa",
"middleware"
],
"license": "MIT",
"main": "index.js",
"maintainers": [
{
"name": "fundon",
"email": "cfddream@gmail.com"
}
],
"name": "koa-multer",
"optionalDependencies": {},
"readme": "# koa-multer\n\n> Multer is a node.js middleware for handling `multipart/form-data` for koa. \n> [multer] wrapper for koa's middleware.\n\n[![NPM version][npm-img]][npm-url]\n[![NPM Downloads][downloads-image]][npm-url]\n[![Build status][travis-img]][travis-url]\n[![Test coverage][coveralls-img]][coveralls-url]\n[![Dependency status][david-img]][david-url]\n[![License][license-img]][license-url]\n\n\n## Install\n\n```sh\n$ npm install --save koa-multer\n```\n\n## Usage\n\n### **=1.x**, **100%**, working with [multer-v1.x](https://github.com/expressjs/multer) and [koa-v2.x](https://github.com/koajs/koa/tree/v2.x).\n\n```js\nconst Koa = require('koa');\nconst route = require('koa-route');\nconst multer = require('koa-multer');\n\nconst app = new Koa();\nconst upload = multer({ dest: 'uploads/' });\n\napp.use(route.post('/profile', upload.single('avatar')));\n\napp.listen(3000);\n```\n\n### **=0.x**, working with `multer-v0.x`(v0.1.8 is the latset version of v0.x) and [koa-v1.x](https://github.com/koajs/koa)\n\n```js\nvar koa = require('koa');\nvar multer = require('koa-multer');\n\nvar app = koa();\n\napp.use(multer({ dest: './uploads/'}));\n\napp.listen(3000);\n```\n\n\n## License\n\n [MIT](LICENSE)\n\n\n[npm-img]: https://img.shields.io/npm/v/koa-multer.svg?style=flat-square\n[npm-url]: https://npmjs.org/package/koa-multer\n[travis-img]: https://img.shields.io/travis/koa-modules/multer.svg?style=flat-square\n[travis-url]: https://travis-ci.org/koa-modules/multer\n[coveralls-img]: https://img.shields.io/coveralls/koa-modules/multer.svg?style=flat-square\n[coveralls-url]: https://coveralls.io/r/koa-modules/multer?branch=master\n[license-img]: https://img.shields.io/badge/license-MIT-green.svg?style=flat-square\n[license-url]: LICENSE\n[david-img]: https://img.shields.io/david/koa-modules/multer.svg?style=flat-square\n[david-url]: https://david-dm.org/koa-modules/multer\n[downloads-image]: https://img.shields.io/npm/dm/koa-multer.svg?style=flat-square\n[multer]: https://github.com/expressjs/multer\n",
"readmeFilename": "README.md",
"repository": {
"type": "git",
"url": "git+https://github.com/koa-modules/multer.git"
},
"scripts": {
"test": "mocha --reporter spec --bail --check-leaks",
"test-ci": "isparta cover node_modules/.bin/_mocha --report lcovonly -- --reporter spec --check-leaks test/*.js",
"test-cov": "isparta cover node_modules/mocha/bin/_mocha -- --reporter dot --check-leaks test/*.js"
},
"version": "1.0.2"
}