{"_id":"submit","_rev":"10-e7be9ed0dbb126d789e04ec680b1f426","name":"submit","description":"form upload and progress api","dist-tags":{"latest":"2.0.0"},"versions":{"1.0.0":{"name":"submit","version":"1.0.0","description":"form upload and progress api","keywords":[],"dependencies":{"promise":"~3.2.0"},"devDependencies":{"mocha":"*"},"scripts":{"test":"mocha -R spec"},"repository":{"type":"git","url":"https://github.com/ForbesLindesay/submit.git"},"author":{"name":"ForbesLindesay"},"license":"MIT","_id":"submit@1.0.0","dist":{"shasum":"1c94dfa2f085327a18648647dae70bc4d5ad2a5a","tarball":"https://registry.npmjs.org/submit/-/submit-1.0.0.tgz","integrity":"sha512-BSzXt+mK5YsJjzKZGM3/G7/LIn4Hj+oM4Hz44v+NHAW5ZPPJKerrXHaxaZn9io25cvkiJ/bkuAJJxULDRj6teg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCXaMhBsmKaA0XO2EfVgoqaJO3oAxoCe0KVo8bEDXdpGAIhANRSuDyEfhrV/KiJymPIpSnC6FD5zc1gJyxjaeG/TyvX"}]},"_from":".","_npmVersion":"1.2.10","_npmUser":{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},"maintainers":[{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"}]},"1.0.1":{"name":"submit","version":"1.0.1","description":"form upload and progress api","keywords":[],"dependencies":{"promise":"~3.2.0"},"devDependencies":{"mocha":"*"},"scripts":{"test":"mocha -R spec"},"repository":{"type":"git","url":"https://github.com/ForbesLindesay/submit.git"},"author":{"name":"ForbesLindesay"},"license":"MIT","_id":"submit@1.0.1","dist":{"shasum":"354b1496101d95979a85e97f601db03bd0876464","tarball":"https://registry.npmjs.org/submit/-/submit-1.0.1.tgz","integrity":"sha512-yZ7HhNI6HHjWi2Y0yL9stbfKQjnaMULRkKJ2UaS7Ps9it9RAllzPD2FgF9AycRCAmKi+NpNHDD0RWE8qRqKTEg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIC5KMzNBKiLjiP5B7/gg3uBzIrb6H9a0z69RlzzzAq1fAiEAuvhvCUNoIrJBOmyrQYTgNDC9ei+pbcQAOTIsO6UUpp0="}]},"_from":".","_npmVersion":"1.2.10","_npmUser":{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},"maintainers":[{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"}]},"1.0.2":{"name":"submit","version":"1.0.2","description":"form upload and progress api","keywords":[],"dependencies":{"promise":"~3.2.0"},"devDependencies":{"mocha":"*"},"scripts":{"test":"mocha -R spec"},"repository":{"type":"git","url":"https://github.com/ForbesLindesay/submit.git"},"author":{"name":"ForbesLindesay"},"license":"MIT","_id":"submit@1.0.2","dist":{"shasum":"4bfcfaf9a4917d1576ae996a873a9b0956d58e23","tarball":"https://registry.npmjs.org/submit/-/submit-1.0.2.tgz","integrity":"sha512-6Svc8IjR37VeSxHz9lcPEGSsr3J3ZQHr/6W1EnoCmzffoQnduaFW/E0e1n865Np342AZEZ+IGfhxoEvGrrnySQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC0Hs+Aml+kUmX4XzCMTsgNM7wPDQFar90b6FRdJBtZeQIgEwV/zEZlZImYmnwG5K3uOQgx+4WS/DlBHv/KzDSB69Q="}]},"_from":".","_npmVersion":"1.2.10","_npmUser":{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},"maintainers":[{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"}]},"2.0.0":{"name":"submit","version":"2.0.0","description":"form upload and progress api","keywords":[],"dependencies":{"promise":"^7.1.1"},"devDependencies":{"mocha":"*"},"scripts":{"test":"mocha -R spec"},"repository":{"type":"git","url":"git+https://github.com/ForbesLindesay/submit.git"},"author":{"name":"ForbesLindesay"},"license":"MIT","gitHead":"56785725e45f0ebe59a87ca4586c7cdc06283631","bugs":{"url":"https://github.com/ForbesLindesay/submit/issues"},"homepage":"https://github.com/ForbesLindesay/submit#readme","_id":"submit@2.0.0","_shasum":"f5d376cbfb5df38c5a0618421e22ae344827be75","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.4.0","_npmUser":{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},"maintainers":[{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"}],"dist":{"shasum":"f5d376cbfb5df38c5a0618421e22ae344827be75","tarball":"https://registry.npmjs.org/submit/-/submit-2.0.0.tgz","integrity":"sha512-P9pmucM25g64bKv7RDa7wPdLOkNGDTRKiTgByRnHEjMszXmhTghIW5vRrd/nMkispD3nwPlphfoWfHyP9zVqUg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCgVZDxhgqG7LrXErhkj0hVOGBgSf35HVleqhOK5Nc9PAIhAObHk1c8ckI4im3d/SriJeQBkbXJOkoOJEhucRx4QIHi"}]},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/submit-2.0.0.tgz_1482851074076_0.9655888206325471"}}},"readme":"# submit\n\nform upload and progress api\n\n[![Build Status](https://img.shields.io/travis/ForbesLindesay/submit/master.svg)](https://travis-ci.org/ForbesLindesay/submit)\n[![Dependency Status](https://img.shields.io/david/ForbesLindesay/submit.svg)](https://david-dm.org/ForbesLindesay/submit)\n[![NPM version](https://img.shields.io/npm/v/submit.svg)](https://www.npmjs.com/package/submit)\n\n## Installation\n\n    npm install submit\n\n## Usage: `submit(form).to(path)`\n\nSubmit the form `form` to the path `path`.\n\nThe result is a [Promises/A+](http://promises-aplus.github.io/promises-spec/) promise with the addition of a small subset of the event emitter API that only supports `progress` events which can be handled by calling `.on('progress', (e) => ...)`\n\n```js\nvar submit = require('submit');\nsubmit(form).to('/upload')\n  .on('progress', function (e) {\n    console.log(e.percent + '%');\n  })\n  .then(function (res) {\n    console.log('complete')\n  }, function (err) {\n    console.log('error')\n  })\n  .done();\n}\n```\n\n## License\n\n  MIT","maintainers":[{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"}],"time":{"modified":"2022-06-27T01:47:42.717Z","created":"2013-07-26T07:09:17.755Z","1.0.0":"2013-07-26T07:09:19.960Z","1.0.1":"2013-07-26T07:20:09.047Z","1.0.2":"2013-07-26T07:29:18.851Z","2.0.0":"2016-12-27T15:04:36.147Z"},"author":{"name":"ForbesLindesay"},"repository":{"type":"git","url":"git+https://github.com/ForbesLindesay/submit.git"},"homepage":"https://github.com/ForbesLindesay/submit#readme","keywords":[],"bugs":{"url":"https://github.com/ForbesLindesay/submit/issues"},"license":"MIT","readmeFilename":"Readme.md"}