{"_id":"@codexteam/capella-pics","_rev":"8-134edca6f28eff2a8d50934449e0a72b","name":"@codexteam/capella-pics","description":"Module for useful image uploading with capella.pics","dist-tags":{"latest":"1.0.2"},"versions":{"1.0.0":{"name":"@codexteam/capella-pics","version":"1.0.0","description":"Module for useful image uploading with capella.pics","main":"src/capella.js","repository":{"type":"git","url":"git+https://github.com/codex-team/capella.nodejs.git"},"keywords":["image-uploading","uploader","image-filters"],"author":{"name":"CodeX","url":"https://ifmo.su"},"license":"MIT","bugs":{"url":"https://github.com/codex-team/capella.nodejs/issues"},"homepage":"https://github.com/codex-team/capella.nodejs#readme","dependencies":{"eslint":"^3.12.2","request":"^2.83.0"},"gitHead":"b6a22289a08a356845c217c1a11b809d5c0c4f02","_id":"@codexteam/capella-pics@1.0.0","_npmVersion":"5.5.1","_nodeVersion":"8.8.1","_npmUser":{"name":"vovaaksenov99","email":"akscorp2014@gmail.com"},"dist":{"integrity":"sha512-QICVOEu59pAyoWapvUDJMyOtiHIJDWZ2GLKl0Gd9wnKFMIgMK5TbVlUTbKXpab698Wm5g6/s1WJEVIeH/qhBQA==","shasum":"517bb0acb7761275b26d765102c3dcef35376f6c","tarball":"https://registry.npmjs.org/@codexteam/capella-pics/-/capella-pics-1.0.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHh+0Bd+feh30SuiK9QP+aoOZLadxUMwZs1aWuvDq7G4AiA/ESnlJh78HimFnXAlwrFpqE7LydGpPAa8PBi0egwEng=="}]},"maintainers":[{"name":"vovaaksenov99","email":"akscorp2014@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/capella-pics-1.0.0.tgz_1516721107405_0.36481278319843113"},"directories":{}},"1.0.1":{"name":"@codexteam/capella-pics","version":"1.0.1","description":"Module for useful image uploading with capella.pics","main":"src/capella.js","repository":{"type":"git","url":"git+https://github.com/codex-team/capella.nodejs.git"},"keywords":["image-uploading","uploader","image-filters"],"author":{"name":"CodeX","url":"https://ifmo.su"},"license":"MIT","bugs":{"url":"https://github.com/codex-team/capella.nodejs/issues"},"homepage":"https://github.com/codex-team/capella.nodejs#readme","dependencies":{"eslint":"^3.12.2","request":"^2.83.0"},"gitHead":"810aecb9b5aef93d33ad92cd18f0e89f2eb86bbd","_id":"@codexteam/capella-pics@1.0.1","_npmVersion":"5.5.1","_nodeVersion":"8.8.1","_npmUser":{"name":"vovaaksenov99","email":"akscorp2014@gmail.com"},"dist":{"integrity":"sha512-0N4mK/EiekdXzah+ZWrGqcOp6fwvW80F0oZT1taXISNRWT8CMN37CIWSoPS062PMGBa8wtMrkSCgueVT/+CyJg==","shasum":"29cb68f31672a6572dfebc870012e18ee684a91b","tarball":"https://registry.npmjs.org/@codexteam/capella-pics/-/capella-pics-1.0.1.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDL3m9VknbPBrGjfUcHPNioTl38DGH9LNrbbLfC0jZwLQIhAMziNqkZLW5xwWpZEIYOXNggycLrlP9vh5KN5e5SOnVx"}]},"maintainers":[{"name":"vovaaksenov99","email":"akscorp2014@gmail.com"},{"name":"codex-team","email":"team@ifmo.su"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/capella-pics-1.0.1.tgz_1516740563526_0.8140978943556547"},"directories":{}},"1.0.2":{"name":"@codexteam/capella-pics","version":"1.0.2","description":"Module for useful image uploading with capella.pics","main":"src/capella.js","repository":{"type":"git","url":"git+https://github.com/codex-team/capella.nodejs.git"},"keywords":["image-uploading","uploader","image-filters"],"author":{"name":"CodeX","url":"https://ifmo.su"},"license":"MIT","bugs":{"url":"https://github.com/codex-team/capella.nodejs/issues"},"homepage":"https://github.com/codex-team/capella.nodejs#readme","dependencies":{"request":"^2.83.0"},"devDependencies":{"eslint":"^4.17.0"},"gitHead":"ce3e05b9ebdf631d7d570ed52cb07d6c930ee47b","_id":"@codexteam/capella-pics@1.0.2","_npmVersion":"6.2.0","_nodeVersion":"10.8.0","_npmUser":{"name":"dsnostr","email":"ntpcp@yandex.ru"},"dist":{"integrity":"sha512-6OrRYoVJPp1vrsyDEfIg39hGXyDK94pfaF3pB97J2pWxxkDC4qObqfYZAZcqeoaHwXbtWrQGQGk5Vwc+w2QLzg==","shasum":"890cb1de6f025198aa2f909e547ce0e7d92a48cf","tarball":"https://registry.npmjs.org/@codexteam/capella-pics/-/capella-pics-1.0.2.tgz","fileCount":5,"unpackedSize":8081,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbz0odCRA9TVsSAnZWagAAvLYP/3BrPNjTjBi7WQQ/qU7A\nBcCSPcjEKz9ScUwz+ApxhaiXa9TKba1PmoBYPsPuZT/Xuq5oOeBMLtmgUkP+\nTc/a/2VrKvuLFu2IAPRPxJjvItbeipBkCLqaEW4RTxDVJ2K5Z3Esr8q15Wu2\n0yVP1GOoYcNOM2+EiUnBjI1kgkm2Opl70jgZTnO0Rb3v0cTb3hJ63vFie10e\nE4keXkGZU6ePhv+l1sMY75ZSAENNaQlVNwbCSSRNXC9ZYj4wNVXUl7FxZQ+r\n3/l8PoEIeKO5lrmNeL4QXX11DJTC3V8MKb1xnNZKHgiDR15BgHKw96IlYI47\nXFcveL2Pg0xMSCrZfUyAEPXsKUZrKG6SOR4us9e+tv82GBVXzcrXq1TAMFTC\nGeBCLlYvSPE/a/5WIDYOAd7AGfKPiQ1nO0RpNsdy4kQOuIxzX1h1DFxEdLFj\njLtOPxJd2d5oGd4Z+HNnMDCtN6gKTkibaNUJfnPpJ0gtDkM6/zMyBxN4uEkg\nXCh5izROgIgHOJM4NiIWx2efMMIAmNtTC21ttXL9E/vT/st2tVDeDdlMo3xo\n1ZwUnfzz/l3KVtZZ7TVoS1aHm2dylru/O1lnJurpd7PhiNaY0bbVyuD1sSKh\n61rtzJ7vWaSHNgrsC6TLoH9XbJI4Vl6XmkSYDZ/KttNaTe8KG4D2sPObq78A\nhb4V\r\n=KZbI\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCk4OAr012x+G4q8sEiraFCqEU3PLFjKAcCP+iUwKYMBAIgbQdfws6rEDY7ITAutdZ4ctV9DiiOD8ZmUTw3h9XHf04="}]},"maintainers":[{"email":"team@ifmo.su","name":"codex-team"},{"email":"ntpcp@yandex.ru","name":"dsnostr"},{"email":"murod.haydarov@gmail.com","name":"khaydarovm"},{"email":"akscorp2014@gmail.com","name":"vovaaksenov99"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/capella-pics_1.0.2_1540311580366_0.591622248023558"},"_hasShrinkwrap":false}},"readme":"# capella.nodejs\n\nImage uploader to [Capella](https://github.com/codex-team/capella)\n\n## Installation\n\n```\nnpm install @codexteam/capella-pics --save\n```\n\n## Usage\n\n```js\nconst Capella = require('@codexteam/capella-pics');\n\nlet capella = new Capella();\n\n// upload by URL\ncapella.uploadFileByURL('https://capella.pics/public/app/capella-logo.png', function (resp) {\n    console.log(resp);\n});\n\n// upload from local path\ncapella.uploadFile('C:/Users/Capella/Desktop/capella-logo.png', function (resp) {\n    console.log(resp);\n});\n```\n\n## Response\n\nReturn [Capella response](https://github.com/codex-team/capella#upload-api) object if everything is ok, otherwise returns Error message.\n\n## Response format\n\nCallback argument description\n\n**On error**\n\n```\n{\n   \"success\": false,\n   \"message\": <message>\n}\n```\n\n**On success**\n\n```\n{\n   \"success\": true,\n   \"message\": <message>,\n   \"id\": <id>,\n   \"url\": <url>\n}\n```\n\n## Custom endpoint\n\nYou can pass a custom endpoint address to the constructor.\n\n```\nlet capella = new Capella({\n    endpoint: 'https://capella.pics/upload'\n});\n```\n\n## License\n\n[MIT](https://github.com/codex-team/capella.nodejs/blob/master/LICENSE)\n","maintainers":[{"email":"chernyshev2001@icloud.com","name":"slaveeks"},{"email":"ntpcp@yandex.ru","name":"dsnostr"},{"email":"team@ifmo.su","name":"codex-team"},{"email":"murod.haydarov@gmail.com","name":"khaydarovm"}],"time":{"modified":"2022-09-14T12:17:45.849Z","created":"2018-01-23T15:25:07.914Z","1.0.0":"2018-01-23T15:25:07.914Z","1.0.1":"2018-01-23T20:49:24.505Z","1.0.2":"2018-10-23T16:19:40.566Z"},"homepage":"https://github.com/codex-team/capella.nodejs#readme","keywords":["image-uploading","uploader","image-filters"],"repository":{"type":"git","url":"git+https://github.com/codex-team/capella.nodejs.git"},"author":{"name":"CodeX","url":"https://ifmo.su"},"bugs":{"url":"https://github.com/codex-team/capella.nodejs/issues"},"license":"MIT","readmeFilename":"README.md"}