{"_id":"fileexpress","_rev":"26-9d12739bc0b253e7fb953fd07010df6d","name":"fileexpress","description":"File upload/serving routes for express 4+ using MongoDB GridFS","dist-tags":{"latest":"1.0.0"},"versions":{"0.0.0":{"name":"fileexpress","version":"0.0.0","description":"File upload/serving routes for express 4+ using MongoDB GridFS","main":"index.js","scripts":{"test":"mocha --timeout 15000"},"keywords":["files","rest","express","gridfs"],"author":{"name":"Scott Frees","email":"scott.frees@gmail.com","url":"http://scottfrees.com/"},"license":"MIT","devDependencies":{"mocha":"~2.1.0","chai":"~1.10.0","supertest":"~0.15.0","should":"~4.4.2","express-busboy":"~2.1.0"},"dependencies":{"express":"~4.10.6","gridfs-stream":"~0.5.3","mongodb":"~1.4.26","mime":"~1.2.11"},"_id":"fileexpress@0.0.0","dist":{"shasum":"b114a26cf913606a8f208078d5f1c585811e90fa","tarball":"https://registry.npmjs.org/fileexpress/-/fileexpress-0.0.0.tgz","integrity":"sha512-zkwdqiYXIW3gRyJhjE9VKol+fDXXSPwK1Q5YOfRagb6gLn80hQiWYvUTMUqnNk3WtKWPMRd72zzYvncbm2st0w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDjjGWm93ykxfsuIACHenCGJi9JnQPa028aDw573Gy1oAIhAIh9IN2ChfiL5mL32F+ZxRvHfee081FYa9YYQIVuqhAt"}]},"_from":"./","_npmVersion":"1.3.14","_npmUser":{"name":"freezer3","email":"scott.frees@gmail.com"},"maintainers":[{"name":"freezer3","email":"scott.frees@gmail.com"}]},"0.0.1":{"name":"fileexpress","version":"0.0.1","description":"File upload/serving routes for express 4+ using MongoDB GridFS","main":"index.js","scripts":{"test":"mocha --timeout 15000"},"keywords":["files","rest","express","gridfs"],"repository":{"type":"git","url":"https://github.com/freezer333/fileexpress"},"author":{"name":"Scott Frees","email":"scott.frees@gmail.com","url":"http://scottfrees.com/"},"license":"MIT","devDependencies":{"mocha":"~2.1.0","chai":"~1.10.0","supertest":"~0.15.0","should":"~4.4.2","express-busboy":"~2.1.0"},"dependencies":{"express":"~4.10.6","gridfs-stream":"~0.5.3","mongodb":"~1.4.26","mime":"~1.2.11"},"bugs":{"url":"https://github.com/freezer333/fileexpress/issues"},"homepage":"https://github.com/freezer333/fileexpress","_id":"fileexpress@0.0.1","dist":{"shasum":"5b0474bce5983b4383eb758953a7bd786b5a3fae","tarball":"https://registry.npmjs.org/fileexpress/-/fileexpress-0.0.1.tgz","integrity":"sha512-XtTIqvkw+3CgyCog6xCfP0gxWpoJp7KP4FIwZc6WfXyhz9jVJupO4GZ2mPg26X9onvlDPnltYZ5gOwrleXNIUw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHX1pjLttkaP+p07vq05459nPeF3QN19ap8V8Svcd5b1AiB7WNDmnpl5aND0old+UF6fUo83WnsXS0j8YicHB6hopA=="}]},"_from":"./","_npmVersion":"1.3.14","_npmUser":{"name":"freezer3","email":"scott.frees@gmail.com"},"maintainers":[{"name":"freezer3","email":"scott.frees@gmail.com"}]},"0.0.2":{"name":"fileexpress","version":"0.0.2","description":"File upload/serving routes for express 4+ using MongoDB GridFS","main":"index.js","scripts":{"test":"mocha --timeout 15000"},"keywords":["files","rest","express","gridfs"],"repository":{"type":"git","url":"https://github.com/freezer333/fileexpress"},"author":{"name":"Scott Frees","email":"scott.frees@gmail.com","url":"http://scottfrees.com/"},"license":"MIT","devDependencies":{"mocha":"~2.1.0","chai":"~1.10.0","supertest":"~0.15.0","should":"~4.4.2","express-busboy":"~2.1.0"},"dependencies":{"express":"~4.10.6","gridfs-stream":"~0.5.3","mongodb":"~1.4.26","mime":"~1.2.11"},"bugs":{"url":"https://github.com/freezer333/fileexpress/issues"},"homepage":"https://github.com/freezer333/fileexpress","_id":"fileexpress@0.0.2","dist":{"shasum":"c5bd4c8d834e7303a7c97245ca81eb7d02afee3f","tarball":"https://registry.npmjs.org/fileexpress/-/fileexpress-0.0.2.tgz","integrity":"sha512-s6TvqOkfP//h5ZNA/uECHwPB96nlJo0trltbeRCavEtO+t45DgJjE/jnT9jXiFnx1GBhm80+yi0b6jGOzgAmqQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDfqyy2mei7++y45s2wz09HhTKTd+AhpE0J+kHBcFVuDAiAqT6gemOPw1GYuuKOM6orL4XI41SYmZee3QYAF9wcetw=="}]},"_from":"./","_npmVersion":"1.3.14","_npmUser":{"name":"freezer3","email":"scott.frees@gmail.com"},"maintainers":[{"name":"freezer3","email":"scott.frees@gmail.com"}]},"0.0.3":{"name":"fileexpress","version":"0.0.3","description":"File upload/serving routes for express 4+ using MongoDB GridFS","main":"index.js","scripts":{"test":"mocha --timeout 15000"},"keywords":["files","rest","express","gridfs"],"repository":{"type":"git","url":"https://github.com/freezer333/fileexpress"},"author":{"name":"Scott Frees","email":"scott.frees@gmail.com","url":"http://scottfrees.com/"},"license":"MIT","devDependencies":{"mocha":"~2.1.0","chai":"~1.10.0","supertest":"~0.15.0","should":"~4.4.2","express-busboy":"~2.1.0"},"dependencies":{"express":"~4.10.6","gridfs-stream":"~0.5.3","mongodb":"~1.4.26","mime":"~1.2.11"},"bugs":{"url":"https://github.com/freezer333/fileexpress/issues"},"homepage":"https://github.com/freezer333/fileexpress","_id":"fileexpress@0.0.3","dist":{"shasum":"e057132723405eddbbe69055f7913ea10f476e89","tarball":"https://registry.npmjs.org/fileexpress/-/fileexpress-0.0.3.tgz","integrity":"sha512-8/ogd8fzdlGSYMvDtbM/UEEXht2VUYvGq/0D0+ojZXgGH/yZ2pvzyO41dsum1KRWgULPOZpLbordAX0xGyA0Ig==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEAK3Rvq4XnUs64pYZ/ZvRBrC/n7WXhL/ZzqMdx+FtxBAiEAi+3XCAyb66WLiTiN7HYhOg5NLmBC+qT6Z85pSjVb6Aw="}]},"_from":"./","_npmVersion":"1.3.14","_npmUser":{"name":"freezer3","email":"scott.frees@gmail.com"},"maintainers":[{"name":"freezer3","email":"scott.frees@gmail.com"}]},"0.0.4":{"name":"fileexpress","version":"0.0.4","description":"File upload/serving routes for express 4+ using MongoDB GridFS","main":"index.js","scripts":{"test":"mocha --timeout 15000"},"keywords":["files","rest","express","gridfs"],"repository":{"type":"git","url":"https://github.com/freezer333/fileexpress"},"author":{"name":"Scott Frees","email":"scott.frees@gmail.com","url":"http://scottfrees.com/"},"license":"MIT","devDependencies":{"mocha":"~2.1.0","chai":"~1.10.0","supertest":"~0.15.0","should":"~4.4.2","express-busboy":"~2.1.0"},"dependencies":{"express":"~4.10.6","gridfs-stream":"~0.5.3","mongodb":"~1.4.26","mime":"~1.2.11","bson":"^0.3.2"},"gitHead":"1df5e54419bbadfb0d14421acf7ecc1fbcd5173a","bugs":{"url":"https://github.com/freezer333/fileexpress/issues"},"homepage":"https://github.com/freezer333/fileexpress","_id":"fileexpress@0.0.4","_shasum":"a59f55f47fee90e2113eca14f02a2f690e78f190","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"freezer3","email":"scott.frees@gmail.com"},"maintainers":[{"name":"freezer3","email":"scott.frees@gmail.com"}],"dist":{"shasum":"a59f55f47fee90e2113eca14f02a2f690e78f190","tarball":"https://registry.npmjs.org/fileexpress/-/fileexpress-0.0.4.tgz","integrity":"sha512-VM384EQj+i/lDYjnLp/GwyXQHlZBGKMm/46ahCbBZsYt2aaWnIlQpMGyPciAyeB+BFQjheV+BKZ2yxiaOaUh9g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFt6tGnQ1Gz7hwuGRy4xpep9+wsDT2cPzHt7GhOQtZgXAiEA3rNzTiXrPo+PLtxqaDJNqV4nfub85+TEr20fjJjoqFs="}]}},"0.0.5":{"name":"fileexpress","version":"0.0.5","description":"File upload/serving routes for express 4+ using MongoDB GridFS","main":"index.js","scripts":{"test":"mocha --timeout 15000"},"keywords":["files","rest","express","gridfs"],"repository":{"type":"git","url":"git+https://github.com/freezer333/fileexpress.git"},"author":{"name":"Scott Frees","email":"scott.frees@gmail.com","url":"http://scottfrees.com/"},"license":"MIT","devDependencies":{"mocha":"~2.1.0","chai":"~1.10.0","supertest":"~0.15.0","should":"~4.4.2","express-busboy":"~2.1.0"},"dependencies":{"express":"~4.10.6","gridfs-stream":"~0.5.3","mongodb":"~1.4.26","mime":"~1.2.11","bson":"~0.3.2"},"gitHead":"c0be17d8eaadb3d76f11c0078b7e491838b18cdc","bugs":{"url":"https://github.com/freezer333/fileexpress/issues"},"homepage":"https://github.com/freezer333/fileexpress#readme","_id":"fileexpress@0.0.5","_shasum":"fde7d59f81db467e7732ba5bb717f9d7b59caf36","_from":".","_npmVersion":"2.11.2","_nodeVersion":"0.12.5","_npmUser":{"name":"freezer3","email":"scott.frees@gmail.com"},"maintainers":[{"name":"freezer3","email":"scott.frees@gmail.com"}],"dist":{"shasum":"fde7d59f81db467e7732ba5bb717f9d7b59caf36","tarball":"https://registry.npmjs.org/fileexpress/-/fileexpress-0.0.5.tgz","integrity":"sha512-veBAJGYDauMV3OW21aSdd5qOvB2PI5NxdiY1Z7Exh3KHw+lXuYFGBFeh6J9YRFOkVhCyBEJfkgh88saA+4/+Lw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICeM0KRWEGDi0QGMAQJvgvcWBfGjXSli6dOX+t8PQZBBAiEAw1P8YTYf1xtdzZ1gOlrX3cqoz8de7IIr+iql274SlAg="}]}},"0.0.6":{"name":"fileexpress","version":"0.0.6","description":"File upload/serving routes for express 4+ using MongoDB GridFS","main":"index.js","scripts":{"test":"mocha --timeout 15000"},"keywords":["files","rest","express","gridfs"],"repository":{"type":"git","url":"git+https://github.com/freezer333/fileexpress.git"},"author":{"name":"Scott Frees","email":"scott.frees@gmail.com","url":"http://scottfrees.com/"},"license":"MIT","devDependencies":{"mocha":"~2.1.0","chai":"~1.10.0","supertest":"~0.15.0","should":"~4.4.2","express-busboy":"~2.1.0"},"dependencies":{"express":"~4.10.6","gridfs-stream":"~0.5.3","mongodb":"~1.4.26","mime":"~1.2.11","bson":"~0.3.2"},"gitHead":"1abfa7c4e1b0f433f1fdffa671c8e64d97d379a1","bugs":{"url":"https://github.com/freezer333/fileexpress/issues"},"homepage":"https://github.com/freezer333/fileexpress#readme","_id":"fileexpress@0.0.6","_shasum":"1c21e0f563b24d6d6981ef664246a0301cc0fb86","_from":".","_npmVersion":"2.11.2","_nodeVersion":"0.12.5","_npmUser":{"name":"freezer3","email":"scott.frees@gmail.com"},"maintainers":[{"name":"freezer3","email":"scott.frees@gmail.com"}],"dist":{"shasum":"1c21e0f563b24d6d6981ef664246a0301cc0fb86","tarball":"https://registry.npmjs.org/fileexpress/-/fileexpress-0.0.6.tgz","integrity":"sha512-aJyDGwO/mUb6/xVZbGUM/JT5aQqm8mujwb29B023tNb2/+Q9uN7UMQTzTinUiEyOn2R8buDjwBt0TRMz1THNmQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCKLOcwn651reYyWtcXv8v7mGRJLH8PcuOYu/ZdQDUsJgIgGO4laqd0HjViSjTDlK02ZJChKAmfvl16eQWaCs0EJtU="}]}},"0.0.7":{"name":"fileexpress","version":"0.0.7","description":"File upload/serving routes for express 4+ using MongoDB GridFS","main":"index.js","scripts":{"test":"mocha --timeout 15000"},"keywords":["files","rest","express","gridfs"],"repository":{"type":"git","url":"git+https://github.com/freezer333/fileexpress.git"},"author":{"name":"Scott Frees","email":"scott.frees@gmail.com","url":"http://scottfrees.com/"},"license":"MIT","devDependencies":{"mocha":"~2.1.0","chai":"~1.10.0","supertest":"~0.15.0","should":"~4.4.2","express-busboy":"~2.1.0"},"dependencies":{"express":"~4.10.6","gridfs-stream":"~0.5.3","mongodb":"~1.4.26","mime":"~1.2.11","bson":"~0.3.2"},"gitHead":"3dd6aff283b24f965fb6ec1dfc2e90e95dfc1d41","bugs":{"url":"https://github.com/freezer333/fileexpress/issues"},"homepage":"https://github.com/freezer333/fileexpress#readme","_id":"fileexpress@0.0.7","_shasum":"85ca7a9e6a9a0a8827e7b646462001b9850baba9","_from":".","_npmVersion":"3.3.6","_nodeVersion":"5.0.0","_npmUser":{"name":"freezer3","email":"scott.frees@gmail.com"},"dist":{"shasum":"85ca7a9e6a9a0a8827e7b646462001b9850baba9","tarball":"https://registry.npmjs.org/fileexpress/-/fileexpress-0.0.7.tgz","integrity":"sha512-VOUyOfAGiJmLzvgApcOiS60npeyWwboT68TwEUDSs0Xy9GYK0Rh+imLG00NPgW6cW/VcEFvlCr7KpKM+7oaC8Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBfPOvQ9kMcYlyxXp37j36h7ySWGCZQxgv1J5q906dhLAiEAm5DreQIpHcu527zuexnRucsLIURXjGnQFhz89vDxpt0="}]},"maintainers":[{"name":"freezer3","email":"scott.frees@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/fileexpress-0.0.7.tgz_1476988321073_0.07180875283665955"}},"0.0.8":{"name":"fileexpress","version":"0.0.8","description":"File upload/serving routes for express 4+ using MongoDB GridFS","main":"index.js","scripts":{"test":"mocha --timeout 15000"},"keywords":["files","rest","express","gridfs"],"repository":{"type":"git","url":"git+https://github.com/freezer333/fileexpress.git"},"author":{"name":"Scott Frees","email":"scott.frees@gmail.com","url":"http://scottfrees.com/"},"license":"MIT","devDependencies":{"mocha":"~2.1.0","chai":"~1.10.0","supertest":"~0.15.0","should":"~4.4.2","express-busboy":"~2.1.0"},"dependencies":{"express":"~4.10.6","gridfs-stream":"~0.5.3","mongodb":"~1.4.26","mime":"~1.2.11","bson":"~0.3.2"},"gitHead":"f482ec3acb6e21df2c740cd98283197618388693","bugs":{"url":"https://github.com/freezer333/fileexpress/issues"},"homepage":"https://github.com/freezer333/fileexpress#readme","_id":"fileexpress@0.0.8","_shasum":"434f3f5ace51c0d4586fb185fd05a78eeef647d5","_from":".","_npmVersion":"3.10.9","_nodeVersion":"6.9.2","_npmUser":{"name":"freezer3","email":"scott.frees@gmail.com"},"dist":{"shasum":"434f3f5ace51c0d4586fb185fd05a78eeef647d5","tarball":"https://registry.npmjs.org/fileexpress/-/fileexpress-0.0.8.tgz","integrity":"sha512-mtGTEBEtoo9NB7WorxCMYRrzDZqc4ZUe8MNBg74UhJLCH+w9Nbknu/v/SUdE6HGsOGibv74Nz+GpsdThgrlcgA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCqRt+lH91axs7ZoYWhX98seAZHs/+DpcbqOHSo876wZQIgCrYE3cdIJTvlFMAGMSGYt6BxkT+UMUKlnjsdhuUrBQY="}]},"maintainers":[{"name":"freezer3","email":"scott.frees@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/fileexpress-0.0.8.tgz_1483050626483_0.5616240999661386"}},"1.0.0":{"name":"fileexpress","version":"1.0.0","description":"File upload/serving routes for express 4+ using MongoDB GridFS","main":"index.js","scripts":{"test":"mocha --timeout 15000"},"keywords":["files","rest","express","gridfs"],"repository":{"type":"git","url":"git+https://github.com/freezer333/fileexpress.git"},"author":{"name":"Scott Frees","email":"scott.frees@gmail.com","url":"http://scottfrees.com/"},"license":"MIT","devDependencies":{"mocha":"3.2.0","chai":"~1.10.0","supertest":"~0.15.0","should":"~4.4.2","express-busboy":"~2.1.0"},"dependencies":{"express":"~4.10.6","gridfs-stream":"1.1.1","mongodb":"2.2.19","mime":"1.3.4","bson":"1.0.3"},"gitHead":"15cfd7a8b7ad92329c9799124c6e10c0002b1c05","bugs":{"url":"https://github.com/freezer333/fileexpress/issues"},"homepage":"https://github.com/freezer333/fileexpress#readme","_id":"fileexpress@1.0.0","_shasum":"91dd9ee000b5ac0dc8e5cf670a5ce6a82b99b64b","_from":".","_npmVersion":"3.10.9","_nodeVersion":"6.9.2","_npmUser":{"name":"freezer3","email":"scott.frees@gmail.com"},"dist":{"shasum":"91dd9ee000b5ac0dc8e5cf670a5ce6a82b99b64b","tarball":"https://registry.npmjs.org/fileexpress/-/fileexpress-1.0.0.tgz","integrity":"sha512-q1o+/OBD5GRe94m/35SfYO60F9oWESSBe6pmJdzkKYhHnAt7jkXqwBk2mqfJWvV6SzVPB3bPFdTBOM63oOWuvQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDLRJlWNbdbOeXgCUfzQKfjhLqBAFh4yMkQYSlHgeIg2AIhAIWm5L2pow5h+YCs9npFlCTj6lYfnwOjtgHQxiW33Aul"}]},"maintainers":[{"name":"freezer3","email":"scott.frees@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/fileexpress-1.0.0.tgz_1483531939137_0.7937005183193833"}}},"readme":"# fileexpress\nfileexpress is an express (4+) router that acts as a drop-in REST API\nto allow file storage and listings backed by MongoDB's GridFS functionality.\nIt supports organizing files by an owner, and has customize-able authorization.\n\n\nFiles can be uploaded via put/post (you need to have a suitable form parser - ie.\n[busboy](https://www.npmjs.org/package/busboy#readme).  **Note** the parser you use must support\nmulti-part form requests (so... [body-parser](https://www.npmjs.com/package/body-parser) doesn't work).  Files are retrieved by owner\nor by file id, along with file meta data, and can be removed with delete calls.\n\n## Installation\n\n```sh\nnpm install fileexpress\n```\n\n## Usage\n\nThe module exports a factory method that is used to create an express 4 router.  Simply\nplug this into your app and you are ready to go.  The factory method requires you to pass in\nan instance of the mongo driver, along with the opened database.\n\n```js\nvar fx = require('fileexpress');\n\n... create mongo connection ...\n\nvar app = express();\n... setup express ...\n\nrouter = fx.make_router(mongo, db);\napp.use('/', router);\n\napp.listen(3000);\n\n```\n\n## Examples\n\n```js\nvar app = express();\nvar bb = require('express-busboy');\n\n\nbb.extend(app, {\n  upload: true,\n  path: 'test/files/uploads'\n});\n\nrouter = fx.make_router(mongo, db);\napp.use('/', router);\n\napp.listen(3000);\n\n```\n","maintainers":[{"name":"freezer3","email":"scott.frees@gmail.com"}],"time":{"modified":"2022-06-18T00:41:56.102Z","created":"2014-12-29T16:12:31.047Z","0.0.0":"2014-12-29T16:12:58.461Z","0.0.1":"2014-12-29T16:16:33.716Z","0.0.2":"2014-12-30T13:19:31.433Z","0.0.3":"2014-12-30T17:26:06.704Z","0.0.4":"2015-06-01T19:04:15.831Z","0.0.5":"2015-08-19T19:15:47.179Z","0.0.6":"2015-09-11T17:18:34.196Z","0.0.7":"2016-10-20T18:32:01.699Z","0.0.8":"2016-12-29T22:30:27.197Z","1.0.0":"2017-01-04T12:12:21.248Z"},"readmeFilename":"readme.md","keywords":["files","rest","express","gridfs"],"author":{"name":"Scott Frees","email":"scott.frees@gmail.com","url":"http://scottfrees.com/"},"license":"MIT","homepage":"https://github.com/freezer333/fileexpress#readme","repository":{"type":"git","url":"git+https://github.com/freezer333/fileexpress.git"},"bugs":{"url":"https://github.com/freezer333/fileexpress/issues"}}