{"_id":"node-upload-images","_rev":"1-67fe1d70c577708d42ebdd1d4d567070","name":"node-upload-images","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"node-upload-images","version":"1.0.0","description":"Library for uploading images to popular image hosting services, uses Node and Axios.","main":"build/index.js","scripts":{"start:dev":"npx nodemon","start":"npm run build && node build/index.js","clean":"rimraf build","prebuild":"npm run clean","build":"tsc","preversion":"npm run build","postversion":"git push --follow-tags","test":"jest","test:dev":"jest --watchAll","start-ts":"ts-node ./src"},"repository":{"type":"git","url":"git+https://github.com/4miners/node-upload-images.git"},"keywords":["image","upload","node","axios","fastpic.org","pixhost.to","postimages.org","upload.cc"],"author":{"name":"Mariusz Serek"},"license":"MIT","devDependencies":{"@types/jest":"^29.4.0","@types/node":"^18.14.6","@types/tough-cookie":"^4.0.2","jest":"^29.4.3","prettier":"^2.8.4","rimraf":"^4.3.0","ts-jest":"^29.0.5","ts-node":"^10.9.1","typescript":"^4.9.5"},"dependencies":{"axios":"^1.3.4","axios-ddos-guard-bypass":"^1.0.1","form-data":"^4.0.0"},"types":"./build/index.d.ts","gitHead":"82c83ce637708bc6780c9d92def81becb7fb6b7d","bugs":{"url":"https://github.com/4miners/node-upload-images/issues"},"homepage":"https://github.com/4miners/node-upload-images#readme","_id":"node-upload-images@1.0.0","_nodeVersion":"16.19.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-Qf4slZyYXMpYVjOtQCwVBVef+JSjWwB5A12939ZWOeTQvIN9HfDOkDiF32gyhiAyWUjB8aLC88rV5W9ZcDfzqg==","shasum":"d021d98b0af339f67403ca4749b30128c39f4f51","tarball":"https://registry.npmjs.org/node-upload-images/-/node-upload-images-1.0.0.tgz","fileCount":43,"unpackedSize":103354,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCID5LSRzXYSiEu/jy/bkPYcpL/vBvq5Pj6llut8d2slZkAiEAh8brh9SiAiR97zMKcObDx6YBOGEzS/2/ekmnkGI25cc="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkCXLPACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq68A//YzGm2VEdjf3LjhE4d/sIr3SpY1Rfux+LA4K9NUIjEc0e1PMk\r\nWVPzVw1H+8JqVurIt11SGIE/rCRvwCudJtRqMqZmCuVF9ynZXhPfGYrnbR0q\r\nMlWJGkA96vUkRPYCzSgzS+xdz042LEOHe63BG9BhFBU97fPL69n88luvuRg0\r\nB7DiOXMnMkFg90Gyga5/BnCdXZW2j/oBERoIgvMzg1afXS89QOopJaZXsjPO\r\nx03uvSjya6ODmLnI6GJZRVh4V49Bs/z6HEQVZmuRBc8z3OGlUh8WSVZEzf6K\r\nNAWgta05K9M5cfaEDYWDs+HHTISg2LnJTgN85g4Iq5dzJEUNuaPF/i2AjA9s\r\nOskkBK7dEDmKqryig1ZcEJfM4f0fYPi3xaH4+CFII7I/6mWW0EpQnvN+nw4E\r\nRpD1uhsdb7VDzhYNV/jH96iEB5xxadJDite1C61aVvZHBGqN07DWg30h+sKO\r\nCOmWDfUJPyIYO+yf+32ah5fawuGAJ5KAZnTYBEjkS+rkYqiTwN+IxgNT89Cr\r\nwXt0VcZxrM/HUV+EE0l1nPGbkCVhLvS2ZXdhXeipS43+oDzcqRzk9RqdQP0j\r\nS5tM6WBuQkf1SK6qR5lM7Wuvx0a4jk5gW6B+xwKa2L+WIbKT8n+Ynbheu9iU\r\nPBBx2mtQxfelEpnnfarCHlVwY9PbEaaYhUc=\r\n=bfsE\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"4miners","email":"mariusz@serek.net"},"directories":{},"maintainers":[{"name":"4miners","email":"mariusz@serek.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/node-upload-images_1.0.0_1678340815191_0.6945291740858133"},"_hasShrinkwrap":false},"1.0.1":{"name":"node-upload-images","version":"1.0.1","description":"Library for uploading images to popular image hosting services, uses Node and Axios.","main":"build/index.js","scripts":{"start:dev":"npx nodemon","start":"npm run build && node build/index.js","clean":"rimraf build","prebuild":"npm run clean","build":"tsc","preversion":"npm run build","postversion":"git push --follow-tags","test":"jest","test:dev":"jest --watchAll","start-ts":"ts-node ./src"},"repository":{"type":"git","url":"git+https://github.com/4miners/node-upload-images.git"},"keywords":["image","upload","node","axios","fastpic.org","pixhost.to","postimages.org","upload.cc"],"author":{"name":"Mariusz Serek"},"license":"MIT","devDependencies":{"@types/jest":"^29.4.0","@types/node":"^18.14.6","@types/tough-cookie":"^4.0.2","jest":"^29.4.3","prettier":"^2.8.4","rimraf":"^4.3.0","ts-jest":"^29.0.5","ts-node":"^10.9.1","typescript":"^4.9.5"},"dependencies":{"axios":"^1.4.0","axios-ddos-guard-bypass":"^1.0.3","form-data":"^4.0.0"},"types":"./build/index.d.ts","gitHead":"0b4d8ac20c5f218910ddd48a0026c5555b24825b","bugs":{"url":"https://github.com/4miners/node-upload-images/issues"},"homepage":"https://github.com/4miners/node-upload-images#readme","_id":"node-upload-images@1.0.1","_nodeVersion":"16.20.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-EyUoK73NsbCnV+IMHRQaFCAIJ95pbja6F7lAFfYy210cYSBQrNLBPNmTEnJ8PQIk7VHtoyp64W+jPJlJ+turfw==","shasum":"71091560ecd925eb7a241af0d18bb75cdca524a9","tarball":"https://registry.npmjs.org/node-upload-images/-/node-upload-images-1.0.1.tgz","fileCount":43,"unpackedSize":103354,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGs59nRb2Ytivf11kX7iGaUJG9R+Tpf/NCah6bTywKE1AiATKSrwBa6J3NTOJ37bMn0+D7BzQdaH7ZhYl4o8qzpRrA=="}]},"_npmUser":{"name":"4miners","email":"mariusz@serek.net"},"directories":{},"maintainers":[{"name":"4miners","email":"mariusz@serek.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/node-upload-images_1.0.1_1691441973001_0.1929908354611649"},"_hasShrinkwrap":false}},"time":{"created":"2023-03-09T05:46:55.135Z","1.0.0":"2023-03-09T05:46:55.378Z","modified":"2023-08-07T20:59:33.319Z","1.0.1":"2023-08-07T20:59:33.201Z"},"maintainers":[{"name":"4miners","email":"mariusz@serek.net"}],"description":"Library for uploading images to popular image hosting services, uses Node and Axios.","homepage":"https://github.com/4miners/node-upload-images#readme","keywords":["image","upload","node","axios","fastpic.org","pixhost.to","postimages.org","upload.cc"],"repository":{"type":"git","url":"git+https://github.com/4miners/node-upload-images.git"},"author":{"name":"Mariusz Serek"},"bugs":{"url":"https://github.com/4miners/node-upload-images/issues"},"license":"MIT","readme":"# node-upload-images\n\nLibrary for uploading images to popular image hosting services, uses Node and Axios.\n\n- Upload from binary, file and remote URL\n\n## Supported services\n\n- [new.fastpic.org](https://new.fastpic.org)\n- [pixhost.to](https://pixhost.to)\n- [postimages.org](https://postimages.org)\n- [upload.cc](https://upload.cc) - _DDoS Guard protection bypassed using [axios-ddos-guard-bypass](https://github.com/4miners/axios-ddos-guard-bypass)_\n\n## Installation\n\n```\nnpm install node-upload-images\n```\n\n## Usage\n\nUpload from binary data:\n\n```js\nimport { ImageUploadService } from 'node-upload-images';\nimport * as fs from 'fs';\n\nconst service = new ImageUploadService('new.fastpic.org');\n\ntry {\n  const imageData = fs.readFileSync('/test.png');\n  let { directLink } = await service.uploadFromBinary(imageData, 'test.png');\n\n  console.log(directLink);\n} catch (error) {}\n```\n\nUpload from file:\n\n```js\nimport { ImageUploadService } from 'node-upload-images';\n\nconst service = new ImageUploadService('new.fastpic.org');\n\ntry {\n  let { directLink } = await service.uploadFromUrl('./test.png');\n\n  console.log(directLink);\n} catch (error) {}\n```\n\nUpload from remote URL:\n\n```js\nimport { ImageUploadService } from 'node-upload-images';\n\nconst service = new ImageUploadService('new.fastpic.org');\n\ntry {\n  let { directLink } = await service.uploadFromUrl(\n    'https://example.com/image.png'\n  );\n\n  console.log(directLink);\n} catch (error) {}\n```\n\n## Limitations\n\nNo login/authentication support yet, image upload is anonymous.\n","readmeFilename":"README.md"}