{"_id":"file-uploader","_rev":"26-3a2deaa0b8238fab5f6e41fca117022d","name":"file-uploader","description":"Programmatic multipart file uploads. Designed for testing file uploads.","dist-tags":{"latest":"1.0.0"},"versions":{"0.0.2":{"author":{"name":"Tim Oxley","email":"secoif@gmail.com","url":"unit.io"},"name":"file-uploader","description":"Programmatic multipart file uploads","keywords":["test","http","upload","file","api","request","post"],"version":"0.0.2","repository":{"type":"git","url":"git@github.com:secoif/file-uploader.git"},"engines":{"node":"~0.6.7"},"dependencies":{"step":"0.0.5","mime":"~1.2.4"},"devDependencies":{"chai":"~0.1.6","express":"~2.5.5"},"main":"index.js","scripts":{"test":"mocha --ui tdd ./tests/index.js"},"homepage":"https://github.com/secoif/file-uploader","_npmUser":{"name":"secoif","email":"secoif@gmail.com"},"_id":"file-uploader@0.0.2","_engineSupported":false,"_npmVersion":"1.0.106","_nodeVersion":"v0.6.6","_defaultsLoaded":true,"dist":{"shasum":"6419774a659fc045060752b409346536a111b372","tarball":"https://registry.npmjs.org/file-uploader/-/file-uploader-0.0.2.tgz","integrity":"sha512-SpEug7xHIS4qnwWRc1XzDqh5ozzyC8EiWtUZ/P0nXdfPQg+BLNwgrYwBIbNFn//Jd6B1G79rXZTieqS9RFKZWA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCnWaKsnPkaSmFjmc82k5LslzWPdEKkUkn4TtH8jUPMxwIhANOn0oxI1HnWUDBzwWG8ntl6UllqcQpmqhZqpPdfpBD6"}]},"maintainers":[{"name":"secoif","email":"secoif@gmail.com"}],"directories":{}},"0.0.3":{"author":{"name":"Tim Oxley","email":"secoif@gmail.com","url":"unit.io"},"name":"file-uploader","description":"Programmatic multipart file uploads. Designed for testing file uploads.","keywords":["test","http","upload","file","api","request","post"],"version":"0.0.3","repository":{"type":"git","url":"git@github.com:timoxley/file-uploader.git"},"engines":{"node":"~0.4 || ~0.6"},"dependencies":{"step":"0.0.5","mime":"~1.2.4"},"devDependencies":{"chai":"~0.1.6","express":"~2.5.5","mocha":"~0.14.0"},"main":"index.js","scripts":{"test":"./node_modules/.bin/mocha --ui tdd -R spec ./tests/index.js"},"homepage":"https://github.com/timoxley/file-uploader","_npmUser":{"name":"timoxley","email":"secoif@gmail.com"},"_id":"file-uploader@0.0.3","optionalDependencies":{},"_engineSupported":true,"_npmVersion":"1.1.1","_nodeVersion":"v0.6.11","_defaultsLoaded":true,"dist":{"shasum":"0898c71d07d9a5b3175f352b0d7fe0a5e678ce9e","tarball":"https://registry.npmjs.org/file-uploader/-/file-uploader-0.0.3.tgz","integrity":"sha512-hM7FHmzihq+QIkEQU5Q6CoVb2llW/ehVWmwnZ73s1wCtpaob/OEgigLAmIEJigulETP6iGowXvJppsOWZcJ9Wg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHq/pEq6gsjD0+csbygwh8P/WHiAgIanHOhB/cdWarZZAiEArAIXRbdBvPdM/dOyRi18KzxsYwn4UOZXoWQ0rU70C64="}]},"maintainers":[{"name":"timoxley","email":"secoif@gmail.com"}]},"0.0.4":{"author":{"name":"Tim Oxley","email":"secoif@gmail.com","url":"unit.io"},"name":"file-uploader","description":"Programmatic multipart file uploads. Designed for testing file uploads.","keywords":["test","http","upload","file","api","request","post"],"version":"0.0.4","repository":{"type":"git","url":"git@github.com:timoxley/file-uploader.git"},"engines":{"node":"~0.4 || ~0.6 || ~0.8"},"dependencies":{"step":"0.0.5","mime":"~1.2.4"},"devDependencies":{"chai":"~0.1.6","express":"~2.5.5","mocha":"~0.14.0"},"main":"index.js","scripts":{"test":"./node_modules/.bin/mocha --ui tdd -R spec ./tests/index.js"},"homepage":"https://github.com/timoxley/file-uploader","_id":"file-uploader@0.0.4","dist":{"shasum":"6d4385a026e6b1258ae73af92ed91a7292288bd2","tarball":"https://registry.npmjs.org/file-uploader/-/file-uploader-0.0.4.tgz","integrity":"sha512-15XutQWCwiAdlSwZgWIqcH1d/EJu+106QyfZZHHn3dkOT3LBxvjq5C5f0DYUmnU2g/BqXWkN04EdIT+iHtDO9g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEq3f1P1CG3kcLEv+2WdpHqYW9kGgWnXsoFuep5D6mW7AiAtroflguMjWPvL027eu0v2iizBaQ94EsrI2ONVAcYRLA=="}]},"maintainers":[{"name":"timoxley","email":"secoif@gmail.com"}]},"1.0.0":{"author":{"name":"Tim Oxley","email":"secoif@gmail.com","url":"unit.io"},"name":"file-uploader","description":"Programmatic multipart file uploads. Designed for testing file uploads.","keywords":["test","http","upload","file","api","request","post"],"version":"1.0.0","repository":{"type":"git","url":"git+ssh://git@github.com/timoxley/file-uploader.git"},"dependencies":{"connect-busboy":"0.0.2","mime":"~1.3.4","step":"0.0.6"},"devDependencies":{"bl":"^1.0.0","body":"^5.1.0","express":"^4.13.3","tape":"^4.1.0"},"main":"index.js","scripts":{"test":"tape tests"},"homepage":"https://github.com/timoxley/file-uploader","bugs":{"url":"https://github.com/timoxley/file-uploader/issues"},"directories":{"test":"tests"},"license":"ISC","gitHead":"22b670f1f05fb7984577116c82985105ee4d5e3c","_id":"file-uploader@1.0.0","_shasum":"1c3dcf7ce9b963c79998c7237909baf4e389114c","_from":".","_npmVersion":"2.9.0","_nodeVersion":"2.0.1","_npmUser":{"name":"timoxley","email":"secoif@gmail.com"},"maintainers":[{"name":"timoxley","email":"secoif@gmail.com"},{"name":"flybyme","email":"price.timmy@gmail.com"}],"dist":{"shasum":"1c3dcf7ce9b963c79998c7237909baf4e389114c","tarball":"https://registry.npmjs.org/file-uploader/-/file-uploader-1.0.0.tgz","integrity":"sha512-4jQiog+EZLbUdiD9pTKABIrUiNdFAWhlQ3AbdPRPn376O78T+y9CuHbMKLhZBa5gKeccnNSXYFgN8h4hkXnqVA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICoGduRE/MwXvVIEdBECex1KM68dzIKnh+TktdhVavSpAiEApOcTFVRIlO4DdR0Jeki/3SdzneSSRko2goIsBJU+xn4="}]}}},"readme":"[![build status](https://secure.travis-ci.org/timoxley/file-uploader.png)](http://travis-ci.org/timoxley/file-uploader)\n# File Uploader\n\nThis module allows you to easily test the file uploading capabilities of\nyour API by allowing you to perform a multipart file upload programmatically. \n\n## Usage\n\n```javascript\n\nvar uploader = require('file-uploader')\n\nvar file   // set to the path of the file you want to upload\nvar cookie // set a cookie if you require authorisation\n\nvar options = {\n  host : 'localhost',\n  port : 4000,\n  path : '/upload',\n  method : 'POST',\n  encoding : 'utf8'\n}\n\nuploader.postFile(options, file, {Cookie: cookie}, function(err, res) {\n  console.log(res.statusCode)\n})\n\n```\n\n## Alternative: Superagent/Supertest\n\nRecently I've been using the\n[superagent](http://visionmedia.github.com/superagent/#multipart-requests)\nand [supertest](https://github.com/visionmedia/supertest) modules to send/test\nfile attachments. The interface is clean, and they\nprovide other essential HTTP requesting and testing functionality.\nI recommend you try them out before doing anything else, ever.\n\n## Credits\nCode originally taken(stolen?) from Anand Prakash: http://www.anandprakash.net/2011/10/20/server-side-multipartform-data-uploads-from-nodejs/\n\nCurrent version has slight modification and bugfixes.\n\nIf Anand Prakash wants to take ownership this repository, he's more than welcome to.\n\nTest Image By Microchip08 (talk) as well as those of Image:Recycled kitten.jpg (Image:Recycled kitten.jpg) [GFDL (www.gnu.org/copyleft/fdl.html) or CC-BY-SA-3.0 (www.creativecommons.org/licenses/by-sa/3.0/)], via Wikimedia Commons\n","maintainers":[{"name":"timoxley","email":"secoif@gmail.com"},{"name":"flybyme","email":"price.timmy@gmail.com"}],"time":{"modified":"2022-06-18T00:40:20.048Z","created":"2012-01-09T10:50:46.202Z","0.0.2":"2012-01-09T10:50:52.393Z","0.0.3":"2012-03-02T01:03:43.583Z","0.0.4":"2012-08-23T14:29:53.112Z","1.0.0":"2015-08-14T18:12:43.858Z"},"author":{"name":"Tim Oxley","email":"secoif@gmail.com","url":"unit.io"},"repository":{"type":"git","url":"git+ssh://git@github.com/timoxley/file-uploader.git"},"users":{"batosai":true},"homepage":"https://github.com/timoxley/file-uploader","keywords":["test","http","upload","file","api","request","post"],"bugs":{"url":"https://github.com/timoxley/file-uploader/issues"},"license":"ISC","readmeFilename":"README.md"}