{"_id":"@ejekanshjain/cloud-storage","_rev":"15-f0a2b00dd1a4a699cc67c72655391900","time":{"created":"2023-07-20T06:46:41.656Z","1.0.0":"2023-07-20T06:37:29.168Z","modified":"2023-12-27T10:45:45.595Z","1.1.0":"2023-07-20T06:44:02.177Z","2.0.0":"2023-07-20T06:46:41.975Z","2.0.1":"2023-07-20T06:47:27.582Z","2.0.2":"2023-07-20T06:47:30.500Z","2.0.3":"2023-07-20T06:48:07.611Z","2.1.0":"2023-07-20T07:44:45.824Z","2.2.0":"2023-07-20T08:02:30.436Z","3.0.0":"2023-09-24T09:46:44.850Z","3.0.1":"2023-10-01T14:54:44.192Z","3.1.0":"2023-10-01T15:19:44.398Z","3.2.0":"2023-12-27T10:45:45.418Z"},"name":"@ejekanshjain/cloud-storage","dist-tags":{"latest":"3.2.0"},"versions":{"2.0.0":{"name":"@ejekanshjain/cloud-storage","version":"2.0.0","description":"All in one package to handle files accross cloud storage services","main":"build/index.js","scripts":{"clean":"rimraf build && rimraf tsconfig.tsbuildinfo","build":"npm run clean && tsc","watch":"npm run clean && tsc -w","publish":"npm run build && npm publish --access public"},"repository":{"type":"git","url":"git+https://github.com/ejekanshjain/cloud-storage.git"},"keywords":["cloud","storage","aws","s3","firebase","gcp","azure","r2","javascript","typescript"],"author":{"name":"Ekansh Jain"},"license":"MIT","bugs":{"url":"https://github.com/ejekanshjain/cloud-storage/issues"},"homepage":"https://github.com/ejekanshjain/cloud-storage#readme","devDependencies":{"@types/node":"^20.4.2","@types/prettier":"^2.7.3","dotenv":"^16.3.1","prettier":"^3.0.0","rimraf":"^5.0.1","typescript":"^5.1.6"},"dependencies":{"@aws-sdk/client-s3":"^3.373.0","@aws-sdk/lib-storage":"^3.373.0","@azure/storage-blob":"^12.15.0","firebase-admin":"^11.10.1","zod":"^3.21.4"},"_id":"@ejekanshjain/cloud-storage@2.0.0","gitHead":"f0e47158b737cb09bb90216b997a18f79d8a3d5d","types":"./build/index.d.ts","_nodeVersion":"20.4.0","_npmVersion":"9.8.0","dist":{"integrity":"sha512-vGTWIKXamb/g4oLT87/U59ky1xXW3qtRA0yopEhMpHYlS3a3rMg8KWB0UBvPWLJJN3tpGs8WX+oHDZyLzjgLGQ==","shasum":"b4e6056b0f14cec35790fe3f12ccff7bcdcebcd7","tarball":"https://registry.npmjs.org/@ejekanshjain/cloud-storage/-/cloud-storage-2.0.0.tgz","fileCount":35,"unpackedSize":33007,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC/lfGV3Mnm8Qt4HHGV7HpnjYSvUS8lwpmGNPEgJEPmYQIhAPpeaZg/jtKo4RUvAZFZd7/38G3BOyXv8yJpFVQl/Dlx"}]},"_npmUser":{"name":"ejekanshjain","email":"ejekanshjain@gmail.com"},"directories":{},"maintainers":[{"name":"ejekanshjain","email":"ejekanshjain@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cloud-storage_2.0.0_1689835601753_0.041097149700668245"},"_hasShrinkwrap":false},"2.0.1":{"name":"@ejekanshjain/cloud-storage","version":"2.0.1","description":"All in one package to handle files accross cloud storage services","main":"build/index.js","scripts":{"clean":"rimraf build && rimraf tsconfig.tsbuildinfo","build":"npm run clean && tsc","watch":"npm run clean && tsc -w","publish":"npm publish --access public"},"repository":{"type":"git","url":"git+https://github.com/ejekanshjain/cloud-storage.git"},"keywords":["cloud","storage","aws","s3","firebase","gcp","azure","r2","javascript","typescript"],"author":{"name":"Ekansh Jain"},"license":"MIT","bugs":{"url":"https://github.com/ejekanshjain/cloud-storage/issues"},"homepage":"https://github.com/ejekanshjain/cloud-storage#readme","devDependencies":{"@types/node":"^20.4.2","@types/prettier":"^2.7.3","dotenv":"^16.3.1","prettier":"^3.0.0","rimraf":"^5.0.1","typescript":"^5.1.6"},"dependencies":{"@aws-sdk/client-s3":"^3.373.0","@aws-sdk/lib-storage":"^3.373.0","@azure/storage-blob":"^12.15.0","firebase-admin":"^11.10.1","zod":"^3.21.4"},"_id":"@ejekanshjain/cloud-storage@2.0.1","gitHead":"e78c87c1cd05e2bf4973ba12d366805caa30b728","types":"./build/index.d.ts","_nodeVersion":"20.4.0","_npmVersion":"9.8.0","dist":{"integrity":"sha512-Q5iEJjpwiJ5vFwxUf3B0dPvMLQ0l2uRYPWE+q08/5spVPBdkqWeNYaWV3f+dgnPhaz6vh+mmm74ng/DPH49HJQ==","shasum":"abcaa384dc1f941cc199f09d750987405fdd8ad8","tarball":"https://registry.npmjs.org/@ejekanshjain/cloud-storage/-/cloud-storage-2.0.1.tgz","fileCount":35,"unpackedSize":32990,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCpgMYxAk+hGcLOH+pp2QqjX6DohIjooa+S4crRomuDwwIgShEyRXOKELW9E1AtaI4bYSaWzAjCMvP+mplo4EQabyE="}]},"_npmUser":{"name":"ejekanshjain","email":"ejekanshjain@gmail.com"},"directories":{},"maintainers":[{"name":"ejekanshjain","email":"ejekanshjain@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cloud-storage_2.0.1_1689835647386_0.9448230888411453"},"_hasShrinkwrap":false},"2.0.2":{"name":"@ejekanshjain/cloud-storage","version":"2.0.2","description":"All in one package to handle files accross cloud storage services","main":"build/index.js","scripts":{"clean":"rimraf build && rimraf tsconfig.tsbuildinfo","build":"npm run clean && tsc","watch":"npm run clean && tsc -w","publish":"npm publish --access public"},"repository":{"type":"git","url":"git+https://github.com/ejekanshjain/cloud-storage.git"},"keywords":["cloud","storage","aws","s3","firebase","gcp","azure","r2","javascript","typescript"],"author":{"name":"Ekansh Jain"},"license":"MIT","bugs":{"url":"https://github.com/ejekanshjain/cloud-storage/issues"},"homepage":"https://github.com/ejekanshjain/cloud-storage#readme","devDependencies":{"@types/node":"^20.4.2","@types/prettier":"^2.7.3","dotenv":"^16.3.1","prettier":"^3.0.0","rimraf":"^5.0.1","typescript":"^5.1.6"},"dependencies":{"@aws-sdk/client-s3":"^3.373.0","@aws-sdk/lib-storage":"^3.373.0","@azure/storage-blob":"^12.15.0","firebase-admin":"^11.10.1","zod":"^3.21.4"},"_id":"@ejekanshjain/cloud-storage@2.0.2","gitHead":"e78c87c1cd05e2bf4973ba12d366805caa30b728","types":"./build/index.d.ts","_nodeVersion":"20.4.0","_npmVersion":"9.8.0","dist":{"integrity":"sha512-aYcMj8oh2yeYV/PG3Kff27bqWYJg0B+0P0ULRHEvIVDtnEnGnU9QwLE4q4R1vmZc3xTMiUZVmQY0WX2y7sH+5Q==","shasum":"393ecdbb42c55a3287ece2145b2b965e297276cc","tarball":"https://registry.npmjs.org/@ejekanshjain/cloud-storage/-/cloud-storage-2.0.2.tgz","fileCount":35,"unpackedSize":32990,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDO+VUGtWfgmrw96qqxVD++JQih1gIiAPnOgnnXJWlMZAIgPlcgoO6fHEvrJ9XqdXZ1uuDLvmxTNgJsvjU3rnEIdCs="}]},"_npmUser":{"name":"ejekanshjain","email":"ejekanshjain@gmail.com"},"directories":{},"maintainers":[{"name":"ejekanshjain","email":"ejekanshjain@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cloud-storage_2.0.2_1689835650343_0.48944426168540067"},"_hasShrinkwrap":false},"2.0.3":{"name":"@ejekanshjain/cloud-storage","version":"2.0.3","description":"All in one package to handle files accross cloud storage services","main":"build/index.js","scripts":{"clean":"rimraf build && rimraf tsconfig.tsbuildinfo","build":"npm run clean && tsc","watch":"npm run clean && tsc -w"},"repository":{"type":"git","url":"git+https://github.com/ejekanshjain/cloud-storage.git"},"keywords":["cloud","storage","aws","s3","firebase","gcp","azure","r2","javascript","typescript"],"author":{"name":"Ekansh Jain"},"license":"MIT","bugs":{"url":"https://github.com/ejekanshjain/cloud-storage/issues"},"homepage":"https://github.com/ejekanshjain/cloud-storage#readme","devDependencies":{"@types/node":"^20.4.2","@types/prettier":"^2.7.3","dotenv":"^16.3.1","prettier":"^3.0.0","rimraf":"^5.0.1","typescript":"^5.1.6"},"dependencies":{"@aws-sdk/client-s3":"^3.373.0","@aws-sdk/lib-storage":"^3.373.0","@azure/storage-blob":"^12.15.0","firebase-admin":"^11.10.1","zod":"^3.21.4"},"_id":"@ejekanshjain/cloud-storage@2.0.3","gitHead":"dcca8a073d66075edf7bb0155f6f2b993e04a14a","types":"./build/index.d.ts","_nodeVersion":"20.4.0","_npmVersion":"9.8.0","dist":{"integrity":"sha512-aZOC12MhPi+5KHfmSFg8qcNZBey6W5ijd95PfVkYzGVLCxqw68P6ohAx+66BIc25id2ZzuxqD1J69KmhgN7HVA==","shasum":"879a4159dacc36d9dd5446ef2a866276cc41161a","tarball":"https://registry.npmjs.org/@ejekanshjain/cloud-storage/-/cloud-storage-2.0.3.tgz","fileCount":35,"unpackedSize":32944,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEAWc1b1YEjq15xswSXA9JC47UjUIIgDsjkBFnVmJA2RAiEAxGztGCMW3eHahI5qGBTWkcjoaeU/yLU5lPsVYQyykKE="}]},"_npmUser":{"name":"ejekanshjain","email":"ejekanshjain@gmail.com"},"directories":{},"maintainers":[{"name":"ejekanshjain","email":"ejekanshjain@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cloud-storage_2.0.3_1689835687448_0.847212817707816"},"_hasShrinkwrap":false},"2.1.0":{"name":"@ejekanshjain/cloud-storage","version":"2.1.0","description":"All in one package to handle files accross cloud storage services","main":"build/index.js","scripts":{"clean":"rimraf build && rimraf tsconfig.tsbuildinfo","build":"npm run clean && tsc","watch":"npm run clean && tsc -w"},"repository":{"type":"git","url":"git+https://github.com/ejekanshjain/cloud-storage.git"},"keywords":["cloud","storage","aws","s3","firebase","gcp","azure","r2","javascript","typescript"],"author":{"name":"Ekansh Jain"},"license":"MIT","bugs":{"url":"https://github.com/ejekanshjain/cloud-storage/issues"},"homepage":"https://github.com/ejekanshjain/cloud-storage#readme","devDependencies":{"@types/node":"^20.4.2","@types/prettier":"^2.7.3","dotenv":"^16.3.1","prettier":"^3.0.0","rimraf":"^5.0.1","typescript":"^5.1.6"},"dependencies":{"@aws-sdk/client-s3":"^3.373.0","@aws-sdk/lib-storage":"^3.373.0","@azure/storage-blob":"^12.15.0","@google-cloud/storage":"^6.12.0","zod":"^3.21.4"},"_id":"@ejekanshjain/cloud-storage@2.1.0","gitHead":"e9cc6a2937338244d281561bd198dd7903aba7b7","types":"./build/index.d.ts","_nodeVersion":"20.4.0","_npmVersion":"9.8.0","dist":{"integrity":"sha512-ZGpgBJqnc/wnnQmGsjLLiaCbMjjsiurUoKeTXOElheweq+Xezxsm6nLkphNXgfrtzOdmV2Ykd4kQS7/ilE3TGg==","shasum":"e446f60f52fb9fc435aeeb5d3e48abe7e918076f","tarball":"https://registry.npmjs.org/@ejekanshjain/cloud-storage/-/cloud-storage-2.1.0.tgz","fileCount":35,"unpackedSize":32344,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD9pf3doNjtvuUKHaskKJasxEHugaSzRFJ3f12BVNhFKAIhALK+Mvw0E6tZX1RIBEzRYFUQUNGsvIRRaruhu1CJ3zg9"}]},"_npmUser":{"name":"ejekanshjain","email":"ejekanshjain@gmail.com"},"directories":{},"maintainers":[{"name":"ejekanshjain","email":"ejekanshjain@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cloud-storage_2.1.0_1689839085653_0.23048698705674764"},"_hasShrinkwrap":false},"2.2.0":{"name":"@ejekanshjain/cloud-storage","version":"2.2.0","description":"All in one package to handle files accross cloud storage services","main":"build/index.js","scripts":{"clean":"rimraf build && rimraf tsconfig.tsbuildinfo","build":"npm run clean && tsc","watch":"npm run clean && tsc -w"},"repository":{"type":"git","url":"git+https://github.com/ejekanshjain/cloud-storage.git"},"keywords":["cloud","storage","aws","s3","firebase","gcp","azure","cloudflare","r2","javascript","typescript"],"author":{"name":"Ekansh Jain"},"license":"MIT","bugs":{"url":"https://github.com/ejekanshjain/cloud-storage/issues"},"homepage":"https://github.com/ejekanshjain/cloud-storage#readme","devDependencies":{"@types/node":"^20.4.2","@types/prettier":"^2.7.3","dotenv":"^16.3.1","prettier":"^3.0.0","rimraf":"^5.0.1","typescript":"^5.1.6"},"dependencies":{"@aws-sdk/client-s3":"^3.373.0","@aws-sdk/lib-storage":"^3.373.0","@azure/storage-blob":"^12.15.0","@google-cloud/storage":"^6.12.0","zod":"^3.21.4"},"_id":"@ejekanshjain/cloud-storage@2.2.0","gitHead":"d6f163a65bd348842b640b2f268e5bdb9f24f547","types":"./build/index.d.ts","_nodeVersion":"20.4.0","_npmVersion":"9.8.0","dist":{"integrity":"sha512-FmexJRwRfwK3zVc7/wf98Eg1fNojPGGGbEAQQPGBdsMlT8dz6lXRTucN4QHnnP51dF1VhPOiX5jGN4zXk57BbQ==","shasum":"2b6b735b3d46034eac86a9e7a8f4c1d7e770f1e5","tarball":"https://registry.npmjs.org/@ejekanshjain/cloud-storage/-/cloud-storage-2.2.0.tgz","fileCount":35,"unpackedSize":35627,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC/B/b75NZ0JwOxt7Q0v7X0xX4jGnTqic5PuAULTMxxwwIgIpKA3zepPQ56lo90S1QStX0HQyfcT20rFPA9Lvarvno="}]},"_npmUser":{"name":"ejekanshjain","email":"ejekanshjain@gmail.com"},"directories":{},"maintainers":[{"name":"ejekanshjain","email":"ejekanshjain@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cloud-storage_2.2.0_1689840150296_0.36159745937978816"},"_hasShrinkwrap":false},"3.0.0":{"name":"@ejekanshjain/cloud-storage","version":"3.0.0","description":"All in one package to handle files accross cloud storage services","main":"build/index.js","scripts":{"clean":"rimraf build && rimraf tsconfig.tsbuildinfo","build":"npm run clean && tsc","watch":"npm run clean && tsc -w"},"repository":{"type":"git","url":"git+https://github.com/ejekanshjain/cloud-storage.git"},"keywords":["cloud","storage","aws","s3","firebase","gcp","azure","cloudflare","r2","javascript","typescript"],"author":{"name":"Ekansh Jain"},"license":"MIT","bugs":{"url":"https://github.com/ejekanshjain/cloud-storage/issues"},"homepage":"https://github.com/ejekanshjain/cloud-storage#readme","devDependencies":{"@types/node":"^20.4.2","@types/prettier":"^2.7.3","dotenv":"^16.3.1","prettier":"^3.0.0","rimraf":"^5.0.1","typescript":"^5.1.6"},"dependencies":{"@aws-sdk/client-s3":"^3.373.0","@aws-sdk/lib-storage":"^3.373.0","@azure/storage-blob":"^12.15.0","@google-cloud/storage":"^6.12.0","zod":"^3.21.4"},"_id":"@ejekanshjain/cloud-storage@3.0.0","gitHead":"6c190c2e3a5786db9a0cd0932f37d01e0d7b89ee","types":"./build/index.d.ts","_nodeVersion":"20.7.0","_npmVersion":"10.1.0","dist":{"integrity":"sha512-+O5NrDgeNQp65ldO65qs23p+vCWBhgqdIlnazofkcnYP98Gp0NNMoStvOkfbONSFf6MgFec+amXzgq7IcLHRBw==","shasum":"baefe4e1304a9c6b88b7bd0b774e034f3778b86a","tarball":"https://registry.npmjs.org/@ejekanshjain/cloud-storage/-/cloud-storage-3.0.0.tgz","fileCount":35,"unpackedSize":32207,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHeEiX0XIoyGRYU8tsxu4buIe3uj54J2GRs1Cjcz8koDAiEAs11WS5cD29bIUeDrgmzYtBuRUrrgsT0iYTz0GteN+AE="}]},"_npmUser":{"name":"ejekanshjain","email":"ejekanshjain@gmail.com"},"directories":{},"maintainers":[{"name":"ejekanshjain","email":"ejekanshjain@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cloud-storage_3.0.0_1695548804707_0.7160979967112293"},"_hasShrinkwrap":false},"3.0.1":{"name":"@ejekanshjain/cloud-storage","version":"3.0.1","description":"All in one package to handle files accross cloud storage services","main":"build/index.js","scripts":{"clean":"rimraf build && rimraf tsconfig.tsbuildinfo","build":"npm run clean && tsc","watch":"npm run clean && tsc -w"},"repository":{"type":"git","url":"git+https://github.com/ejekanshjain/cloud-storage.git"},"keywords":["cloud","storage","aws","s3","firebase","gcp","azure","cloudflare","r2","javascript","typescript"],"author":{"name":"Ekansh Jain"},"license":"MIT","bugs":{"url":"https://github.com/ejekanshjain/cloud-storage/issues"},"homepage":"https://github.com/ejekanshjain/cloud-storage#readme","devDependencies":{"@types/node":"^20.4.2","@types/prettier":"^2.7.3","dotenv":"^16.3.1","prettier":"^3.0.0","rimraf":"^5.0.1","typescript":"^5.1.6"},"dependencies":{"@aws-sdk/client-s3":"^3.373.0","@aws-sdk/lib-storage":"^3.373.0","@azure/storage-blob":"^12.15.0","@google-cloud/storage":"^6.12.0","zod":"^3.21.4"},"_id":"@ejekanshjain/cloud-storage@3.0.1","gitHead":"94432eeb6bc14e9e5feca45c16de1b32e387516a","_nodeVersion":"20.7.0","_npmVersion":"10.1.0","dist":{"integrity":"sha512-6Hfe+ltYTbWKYTKQhXUBm9dMhnycx4ftFap9v5OI5h5OC/kn17ll7vNqvIzH4jJpFtJaRhRLGr52wwIArBNgbg==","shasum":"0d1d351f32b3c799f2a6b2b0a3e0a8265db620d7","tarball":"https://registry.npmjs.org/@ejekanshjain/cloud-storage/-/cloud-storage-3.0.1.tgz","fileCount":11,"unpackedSize":11468,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCjzoAM5mfeiERnQ9icvZaxMoEXkGuuGapoHqF1mfn+gAIhAMrAWzzxJHAJBX+pKpRtADIwDvq4PYFG0sQSKpYdiG4p"}]},"_npmUser":{"name":"ejekanshjain","email":"ejekanshjain@gmail.com"},"directories":{},"maintainers":[{"name":"ejekanshjain","email":"ejekanshjain@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cloud-storage_3.0.1_1696172084008_0.8605713595555013"},"_hasShrinkwrap":false},"3.1.0":{"name":"@ejekanshjain/cloud-storage","version":"3.1.0","description":"All in one package to handle files accross cloud storage services","main":"build/index.js","scripts":{"clean":"rimraf build && rimraf tsconfig.tsbuildinfo","build":"npm run clean && tsc","watch":"npm run clean && tsc -w"},"repository":{"type":"git","url":"git+https://github.com/ejekanshjain/cloud-storage.git"},"keywords":["cloud","storage","aws","s3","firebase","gcp","azure","cloudflare","r2","javascript","typescript"],"author":{"name":"Ekansh Jain"},"license":"MIT","bugs":{"url":"https://github.com/ejekanshjain/cloud-storage/issues"},"homepage":"https://github.com/ejekanshjain/cloud-storage#readme","devDependencies":{"@types/node":"^20.4.2","@types/prettier":"^2.7.3","dotenv":"^16.3.1","prettier":"^3.0.0","rimraf":"^5.0.1","typescript":"^5.1.6"},"dependencies":{"@aws-sdk/client-s3":"^3.373.0","@aws-sdk/lib-storage":"^3.373.0","@azure/storage-blob":"^12.15.0","@google-cloud/storage":"^6.12.0","zod":"^3.21.4"},"_id":"@ejekanshjain/cloud-storage@3.1.0","gitHead":"fb999672a43f1b34a4c46d25edae5e6080675545","types":"./build/index.d.ts","_nodeVersion":"20.7.0","_npmVersion":"10.1.0","dist":{"integrity":"sha512-DaUq82+AzEnzQbeshX3S90JSmIGiydcZ/mxidYClm15oQED6cHL2AVebKhjrAP9gl8n8UUFRFE3AvT/64WG1CA==","shasum":"247f1e44935fee52fcc0f957fad82b7a649e9def","tarball":"https://registry.npmjs.org/@ejekanshjain/cloud-storage/-/cloud-storage-3.1.0.tgz","fileCount":35,"unpackedSize":33129,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDP0e6uLUD7QQALPiWX9qw+B+ZfKSCFB1+Q8oGa/JpWJgIgUTWShvKWteHL6IfLSup31sXBgLRZaaDbYx4ZLDdx30Y="}]},"_npmUser":{"name":"ejekanshjain","email":"ejekanshjain@gmail.com"},"directories":{},"maintainers":[{"name":"ejekanshjain","email":"ejekanshjain@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cloud-storage_3.1.0_1696173584190_0.795366435038749"},"_hasShrinkwrap":false},"3.2.0":{"name":"@ejekanshjain/cloud-storage","version":"3.2.0","description":"All in one package to handle files accross cloud storage services","main":"build/index.js","scripts":{"clean":"rimraf build && rimraf tsconfig.tsbuildinfo","build":"npm run clean && tsc","watch":"npm run clean && tsc -w"},"repository":{"type":"git","url":"git+https://github.com/ejekanshjain/cloud-storage.git"},"keywords":["cloud","storage","aws","s3","firebase","gcp","azure","cloudflare","r2","javascript","typescript"],"author":{"name":"Ekansh Jain"},"license":"MIT","bugs":{"url":"https://github.com/ejekanshjain/cloud-storage/issues"},"homepage":"https://github.com/ejekanshjain/cloud-storage#readme","devDependencies":{"@types/node":"^20.10.5","@types/prettier":"^2.7.3","dotenv":"^16.3.1","prettier":"^3.1.1","rimraf":"^5.0.5","typescript":"^5.3.3"},"dependencies":{"@aws-sdk/client-s3":"^3.481.0","@aws-sdk/lib-storage":"^3.481.0","@azure/storage-blob":"^12.17.0","@google-cloud/storage":"^7.7.0","zod":"^3.22.4"},"_id":"@ejekanshjain/cloud-storage@3.2.0","gitHead":"55087ba2b8c69a04b24c5e526a548a3485d3d663","types":"./build/index.d.ts","_nodeVersion":"21.5.0","_npmVersion":"10.2.4","dist":{"integrity":"sha512-/rw/Zdg4cDuRFBHPkFwcG0MQwqmovtmHVVdgPMTuYVoVGQz7pPTadITz8FMRrSt2ICMHlqWjCWzMQXnFtXIU7A==","shasum":"8c5d77ac9cfb7b8cef31b2bc62c387d4abdcc595","tarball":"https://registry.npmjs.org/@ejekanshjain/cloud-storage/-/cloud-storage-3.2.0.tgz","fileCount":35,"unpackedSize":33443,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDaW9z2y//C4HNuAKNfrIKOY/ccdJDfbgKtsmmu1JXVagIgYcPV9ZtmuigcUcud8srOfAkO+CLff1Zsy5Xv7gEfvfU="}]},"_npmUser":{"name":"ejekanshjain","email":"ejekanshjain@gmail.com"},"directories":{},"maintainers":[{"name":"ejekanshjain","email":"ejekanshjain@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cloud-storage_3.2.0_1703673945250_0.41711058980414584"},"_hasShrinkwrap":false}},"maintainers":[{"name":"ejekanshjain","email":"ejekanshjain@gmail.com"}],"description":"All in one package to handle files accross cloud storage services","homepage":"https://github.com/ejekanshjain/cloud-storage#readme","keywords":["cloud","storage","aws","s3","firebase","gcp","azure","cloudflare","r2","javascript","typescript"],"repository":{"type":"git","url":"git+https://github.com/ejekanshjain/cloud-storage.git"},"author":{"name":"Ekansh Jain"},"bugs":{"url":"https://github.com/ejekanshjain/cloud-storage/issues"},"license":"MIT","readme":"# cloud-storage\n\n### Import any one the client in your code base like this\n```\nimport { AzureStorageClient } from '@ejekanshjain/cloud-storage'\nimport { GCPStorageClient } from '@ejekanshjain/cloud-storage'\nimport { S3Client } from '@ejekanshjain/cloud-storage'\n```\n\n### Initialize storageClient like this\n```\nconst s3Client = S3Client({\n  region: process.env.AWS_REGION!,\n  accessKey: process.env.AWS_ACCESS_KEY!,\n  accessSecret: process.env.AWS_ACCESS_SECRET!,\n  bucket: process.env.AWS_BUCKET!,\n  host: process.env.AWS_HOST\n})\n```\n\n### Then you can call these methods to perform CRUD operations on file\n```\nawait s3Client.addFile({\n  filename: \"test.txt\",\n  data: \"Hello, World!\"\n})\n\nawait s3Client.getFile(\"test.txt\")\n\nawait s3Client.deleteFile(\"test.txt\")\n```\n\n## You can use the similar approach for Cloudflare R2, GCP Buckets, Azure Storage Buckets, Firebase Storage\n\n### Troubleshoot gcp/firebase storage bucket for cors error on anonymous\nGo to Cloud console\nCreate a file cors.json\n```\n[\n  {\n    \"origin\": [\"https://example.com\"],\n    \"method\": [\"GET\"],\n    \"maxAgeSeconds\": 3600\n  }\n]\n```\n\nNow run this command\n```\ngsutil cors set cors.json gs://exampleproject.appspot.com\n```\n","readmeFilename":"README.md"}