{"_id":"alleup","_rev":"22-0082ce147d25e173d3a564e80314510a","name":"alleup","description":"Flexible way to resize and upload images to Amazon S3 or file system storages","dist-tags":{"latest":"0.1.1"},"versions":{"0.0.1":{"author":{"name":"Andriy Bazuta","email":"andriy.bazyuta@gmail.com","url":"http://andriy.bazyuta.me"},"name":"alleup","description":"Flexible way to resize and upload images to Amazon S3 or file system storages","version":"0.0.1","keywords":["upload","image","imagemagick","amazon","aws","s3","resize","file"],"homepage":"https://github.com/tih-ra/alleup","repository":{"type":"git","url":"git://github.com/tih-ra/alleup.git"},"engines":{"node":"~0.4.11"},"dependencies":{"formidable":"~1.0.7","imagemagick":"~0.1.2","knox":"~0.0.9"},"devDependencies":{},"_npmUser":{"name":"andriy","email":"andriy.bazyuta@gmail.com"},"_id":"alleup@0.0.1","_engineSupported":true,"_npmVersion":"1.0.104","_nodeVersion":"v0.4.11","_defaultsLoaded":true,"dist":{"shasum":"fd1941043312f514456118561489236f01a5a004","tarball":"https://registry.npmjs.org/alleup/-/alleup-0.0.1.tgz","integrity":"sha512-olZrpCEH+sbzBLgWthxzv/E/Dyg7bQvIPSsqrL93iviGtWhKgNfgfzPRxEooFRI9UM2kNnlqWND0h7OYEGOr6g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDjMZ5TObnwduGHs0SDx4ko04JKokYAjUMVwxoERLSMyAIgVpROQiJ7i1DMBt1N0Uw+Tcx3eDr5hPAQPCZMlpAC6rQ="}]},"maintainers":[{"name":"andriy","email":"andriy.bazyuta@gmail.com"}],"directories":{}},"0.0.2":{"author":{"name":"Andriy Bazuta","email":"andriy.bazyuta@gmail.com","url":"http://andriy.bazyuta.me"},"name":"alleup","description":"Flexible way to resize and upload images to Amazon S3 or file system storages","version":"0.0.2","keywords":["upload","image","imagemagick","amazon","aws","s3","resize","file"],"homepage":"https://github.com/tih-ra/alleup","repository":{"type":"git","url":"git://github.com/tih-ra/alleup.git"},"engines":{"node":">= 0.4.1 < 0.7.0"},"dependencies":{"formidable":"~1.0.7","imagemagick":"~0.1.2","knox":"~0.0.9"},"devDependencies":{},"_npmUser":{"name":"andriy","email":"andriy.bazyuta@gmail.com"},"_id":"alleup@0.0.2","_engineSupported":true,"_npmVersion":"1.0.104","_nodeVersion":"v0.4.11","_defaultsLoaded":true,"dist":{"shasum":"90d7a41ae2c5e52f5b61eec9635618ace5a81404","tarball":"https://registry.npmjs.org/alleup/-/alleup-0.0.2.tgz","integrity":"sha512-FPbYiIH/9oXyj/PducqRonUygoLcRhoI/vMCu3P2+cCVtpGNRUmDzsbmNHyyIkw2QwM11tEWeFS4tDbAQj8OZw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDogegjtxqwSV6dmH1URf+lQuV+dcBuQTrD6NzOqvOZWAIhAM71kAXvvE6/HS8HK+g7M73GY9z7ELqya6d6AQ/v3h8c"}]},"maintainers":[{"name":"andriy","email":"andriy.bazyuta@gmail.com"}],"directories":{}},"0.0.3":{"author":{"name":"Andriy Bazuta","email":"andriy.bazyuta@gmail.com","url":"http://andriy.bazyuta.me"},"name":"alleup","description":"Flexible way to resize and upload images to Amazon S3 or file system storages","version":"0.0.3","keywords":["upload","image","imagemagick","amazon","aws","s3","resize","file"],"homepage":"https://github.com/tih-ra/alleup","repository":{"type":"git","url":"git://github.com/tih-ra/alleup.git"},"engines":{"node":">= 0.4.1 < 0.7.0"},"dependencies":{"formidable":"~1.0.7","imagemagick":"~0.1.2","knox":"~0.0.9"},"devDependencies":{},"_npmUser":{"name":"andriy","email":"andriy.bazyuta@gmail.com"},"_id":"alleup@0.0.3","_engineSupported":true,"_npmVersion":"1.0.104","_nodeVersion":"v0.4.11","_defaultsLoaded":true,"dist":{"shasum":"e9896509c70d13007f681d4247e35f59531342e8","tarball":"https://registry.npmjs.org/alleup/-/alleup-0.0.3.tgz","integrity":"sha512-zEPW2X3ey2AAzO/yqsz8EXzVKRyuVaEZ3TQTqmXExXHM0sYjegMhSt7QWbdY0fm6EMNlrvUnrC9T9uFd33vgDA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC4SfecCrt1BEF/Vn5wiXRYjnK4Xw4zxec04P1x1+GDUgIhAJZUk5D5rD+MBYLyWlU7SURUQ/Lg2bkOKhqVuTjNgw9q"}]},"maintainers":[{"name":"andriy","email":"andriy.bazyuta@gmail.com"}],"directories":{}},"0.0.5":{"author":{"name":"Andriy Bazuta","email":"andriy.bazyuta@gmail.com","url":"http://andriy.bazyuta.me"},"name":"alleup","description":"Flexible way to resize and upload images to Amazon S3 or file system storages","version":"0.0.5","keywords":["upload","image","imagemagick","amazon","aws","s3","resize","file"],"homepage":"https://github.com/tih-ra/alleup","repository":{"type":"git","url":"git://github.com/tih-ra/alleup.git"},"engines":{"node":">= 0.4.1 < 0.7.0"},"dependencies":{"formidable":"~1.0.7","imagemagick":"~0.1.2","knox":"~0.0.9"},"devDependencies":{},"_npmUser":{"name":"andriy","email":"andriy.bazyuta@gmail.com"},"_id":"alleup@0.0.5","_engineSupported":true,"_npmVersion":"1.0.104","_nodeVersion":"v0.4.11","_defaultsLoaded":true,"dist":{"shasum":"cc45bc68c25319a31fe54784a9cd53e39c67d5ae","tarball":"https://registry.npmjs.org/alleup/-/alleup-0.0.5.tgz","integrity":"sha512-XIAZY2LuW3KUAELOIU6rmaShVCGLkVjGxBN3Z1xUCLmpMbqtlurqb1+rPzpP19LT+ELnVL4cK0DTVu58VkzsNA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBNtA//JHTKkiaPAu5U2h/ibiKSOjZ6o6G/gjPw1/QCZAiEA/S5/9PG7YMnaJe4tw0+KN52QzXK7rDLCj2CL2z6xV8o="}]},"maintainers":[{"name":"andriy","email":"andriy.bazyuta@gmail.com"}]},"0.1.0":{"author":{"name":"Andriy Bazuta","email":"andriy.bazyuta@gmail.com","url":"http://andriy.bazyuta.me"},"name":"alleup","description":"Flexible way to resize and upload images to Amazon S3 or file system storages","version":"0.1.0","keywords":["upload","image","imagemagick","amazon","aws","s3","resize","file"],"homepage":"https://github.com/tih-ra/alleup","repository":{"type":"git","url":"git://github.com/tih-ra/alleup.git"},"engines":{"node":">= 0.4.1 < 0.7.0"},"dependencies":{"formidable":"~1.0.7","imagemagick":"~0.1.2","knox":"~0.0.9"},"devDependencies":{},"_npmUser":{"name":"andriy","email":"andriy.bazyuta@gmail.com"},"_id":"alleup@0.1.0","_engineSupported":true,"_npmVersion":"1.0.104","_nodeVersion":"v0.4.11","_defaultsLoaded":true,"dist":{"shasum":"05f642306f959212a2e72dd737e1237a79e7c3fd","tarball":"https://registry.npmjs.org/alleup/-/alleup-0.1.0.tgz","integrity":"sha512-i+9hdtpGL8vsb8/P4t1hdHEzTYRaPBIx4DeKG81CraRGzcqSZ8wV6cpPiJgLyGNAQZVg3vB8HmqbqLRjlW5O/g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD3w7RDWo0l/Ud2BYN0i/0iFqiXi/+HVhRnK3N7IBWAOwIgf2b07bXEAstVCYm3jIM7vZDI+50j1OPll1paQcbwXSk="}]},"maintainers":[{"name":"andriy","email":"andriy.bazyuta@gmail.com"}]},"0.1.1":{"author":{"name":"Andriy Bazuta","email":"andriy.bazyuta@gmail.com","url":"http://andriy.bazyuta.me"},"name":"alleup","description":"Flexible way to resize and upload images to Amazon S3 or file system storages","version":"0.1.1","keywords":["upload","image","imagemagick","amazon","aws","s3","resize","file"],"homepage":"https://github.com/tih-ra/alleup","repository":{"type":"git","url":"git://github.com/tih-ra/alleup.git"},"engines":{"node":">= 0.4.1 <= 0.8.6"},"dependencies":{"formidable":"~1.0.7","imagemagick":"~0.1.2","knox":"~0.0.9"},"devDependencies":{},"_npmUser":{"name":"andriy","email":"andriy.bazyuta@gmail.com"},"_id":"alleup@0.1.1","_engineSupported":true,"_npmVersion":"1.0.106","_nodeVersion":"v0.6.6","_defaultsLoaded":true,"dist":{"shasum":"2c0a1c7a1174bb5d0123a10e54a2ac73f1e72cff","tarball":"https://registry.npmjs.org/alleup/-/alleup-0.1.1.tgz","integrity":"sha512-0HkZCP9GFzwJGXBGR8BwsyUTy3zi/WGl69AMgE5+v27C9IgYvEy7GtRXU2zRDWRr4BxGhdtWcRUEPEVgbnhHiA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCBEi1g5LsWmtGKQwgPaJ+K8nq463xK43idfp8mxAyvpgIhAMg6+BdamRQqIv0u3sdp4t+uTSiWV2ZNDNEknqlvylew"}]},"maintainers":[{"name":"andriy","email":"andriy.bazyuta@gmail.com"}]}},"readme":"Alleup\n=============\n\nFlexible way to resize and upload images to Amazon S3 or file system storages for Node.js. Possible  to add different versions of the same file in cropped or resized variant.\n\n## Installation\n    $ npm install alleup\n\n## Quick Start\n\n1. **You need to create alleup configuration file with image variants and your storages**\nExample:\n\n    ```javascript\n    {\n\t\t\"variants\": {\n\t\t\t\"resize\": {\n\t\t\t\t\"mini\" : \"300x200\",\n\t\t\t\t\"preview\": \"800x600\"\n\t\t\t},\n\t\t\t\"crop\": {\n\t\t\t\t\"thumb\": \"200x200\"\n\t\t\t}\n\t\t},\n\n\t\t\"storage\": {\n\t\t\t\"aws\": {\n\t\t\t\t\"key\" : \"AWS_KEY\",\n\t\t\t\t\"secret\" : \"AWS_SECRET\",\n\t\t\t\t\"bucket\" : \"AWS_BUCKET\"\n\t\t\t},\n\t\t\t\"dir\": {\n\t\t\t\t\"path\" : \"./public/images/\" \n\t\t\t}\n\t\t}\n\t}\n\t\n2. **Now you can use Alleup**\n  \n    ```javascript\n    var  Alleup = require('alleup');\n    var alleup = new Alleup({storage : \"aws\", config_file: \"path_to_alleup_config.json\"})\n\t\n  You can use `storage: 'aws'` for store files on Amazon S3 or `storage: 'dir'` for store files in filesystem\n\n## UPLOAD, URL and DELETE\n\t\n1. **Upload example:**\n\t\n    ```javascript\n    app.post('/upload',  function(req, res) {\n      alleup.upload(req, res, function(err, file, res){\n\n          console.log(\"FILE UPLOADED: \" + file);\n          // THIS YOU CAN SAVE FILE TO DATABASE FOR EXAMPLE\n          res.end();\n      });\n    });\n\n2. **Remove uploaded file example:**\n\n    ```javascript\n    app.get('/delete',  function(req, res) {\n      alleup.remove('1322506647.jpg', function(err) {\n\n          // THIS YOU CAN DELETE FILE FROM DATABASE FOR EXAMPLE\n          res.end();\n      });\n    });\n\n3. **Get file url example:**\n\n    ```javascript\n    alleup.url(file, variant);\n\n`file` - The name of the file you uploaded, saved for example in database (`345621345.jpg`), `variant` - one of your image variants names from alleup_congig.json\n\t\n### Contribution\n**Pull requests are welcome!!!**\n\n### License\n(The MIT License)\n\nCopyright (c) 2011 Andriy Bazyuta &lt;andriy.bazyuta@gmail.com&gt;\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n'Software'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n---\n### Author\nAndriy Bazyuta","maintainers":[{"name":"andriy","email":"andriy.bazyuta@gmail.com"}],"time":{"modified":"2022-06-13T02:39:41.654Z","created":"2011-11-28T21:55:55.848Z","0.0.1":"2011-11-28T21:55:57.829Z","0.0.2":"2011-11-28T22:54:53.991Z","0.0.3":"2011-12-02T00:59:51.245Z","0.0.5":"2011-12-03T02:42:40.411Z","0.1.0":"2011-12-25T16:37:42.255Z","0.1.1":"2012-08-08T14:32:21.724Z"},"author":{"name":"Andriy Bazuta","email":"andriy.bazyuta@gmail.com","url":"http://andriy.bazyuta.me"},"repository":{"type":"git","url":"git://github.com/tih-ra/alleup.git"},"users":{"visnup":true,"devonning":true,"jeffersonsouza":true}}