{"_id":"@cantfindkernel/bunnycdn-storage","name":"@cantfindkernel/bunnycdn-storage","dist-tags":{"latest":"1.0.4"},"versions":{"1.0.4":{"name":"@cantfindkernel/bunnycdn-storage","version":"1.0.4","main":"dist/main.js","types":"dist/main.d.ts","repository":{"type":"git","url":"git+https://github.com/69/bunnycdn-storage.git"},"license":"MIT","scripts":{"build":"tsc"},"dependencies":{"axios":"^0.21.1","form-data":"^3.0.0"},"devDependencies":{"@types/node":"^13.13.5","typescript":"^3.8.3"},"gitHead":"53adb8ec23fbae297cc68022c578befa689dd7f1","description":"![GitHub](https://img.shields.io/github/license/69/bunnycdn-storage-js?style=flat-square) [![npm](https://img.shields.io/npm/v/bunnycdn-storage?style=flat-square)](https://www.npmjs.com/package/bunnycdn-storage)","bugs":{"url":"https://github.com/69/bunnycdn-storage/issues"},"homepage":"https://github.com/69/bunnycdn-storage#readme","_id":"@cantfindkernel/bunnycdn-storage@1.0.4","_nodeVersion":"19.6.0","_npmVersion":"9.1.2","dist":{"integrity":"sha512-5b0GoxHejd7Iy1DNPcSfPwas+od3ySVpALjNQD23MrIgfd1rc0adtPzsLh6epUygW2udEjhzo9YJ33ifGJY6lw==","shasum":"ca172b415a7e9318bd77ecc9c1fd560df723f4b1","tarball":"https://registry.npmjs.org/@cantfindkernel/bunnycdn-storage/-/bunnycdn-storage-1.0.4.tgz","fileCount":5,"unpackedSize":4903,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIATZguPu0xv4GP40P+cxfw7wo3N9G073pzaLM065hgcFAiEAjAlJcykcqpkNNqQZbkm3gtYmHvARapWAonsS346G7W0="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj5cnGACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrEcA/+Nfb/eIAso9sMX6Cbs8oANJc3vicN49bs/PClyJUu5q99bKLf\r\nqRV+ktGFLISs8aHIb9MLYRh9zBR8+rUPW3gSgy4acFsfibz1KlqSu6st32Fw\r\nrrTl0aI86/q3DWcyX/aEbUSdgR/9olqbuk+4eX5rvkszRcY5Tdm1UKOjfV/K\r\nZY0bu7rhl9IgzcuNWFOp7HyBWZUOKPvZm9Iq2IYRpXlrQ7o6WrMZnuY1teeI\r\nMHvRXAQq1mSOlI83/RwaBK5GAqDKddLmOCOEGwcqgK6+QserxNsEwm9s9trq\r\nO+1RtG5aw0pkMmrMzHXf1TzAh60YqDK68JMno50b/hcUkbzdPCrhBA5QvhJh\r\nK2vMj2IN2HG8vB0RrFCvjAoDkv62WSioM7emz1VWW60ZePWE+W8ZKX0khwKw\r\nfCrKUw+zuzY3hK/399+nNQ5nRTN0J8dT6tW7GuDOjxtMDzwj9fxKw15JF4lE\r\n6TQho5yEzaGkLH6CZPJ2Pep2VDGepfgFqrdMsNS44Tc+2Kbc2vrpwt/Cerxt\r\n8PfxFE3wHICLe0do4p19rzYPQPfYe9FN37zmvw2LlDxryOXrvXiLfq2/QWiJ\r\nBRlx6B/P98Xqg6hm09rQYMcjnPcsJAeJRnYgCuqlf6zmFMf5NIHgD0hXcQyv\r\n8MxFd8gZsy8tpu04dfJXlkHN7DTIOLkQDzI=\r\n=2/2w\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"cantfindkernel","email":"mrsariablue@protonmail.com"},"directories":{},"maintainers":[{"name":"cantfindkernel","email":"mrsariablue@protonmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bunnycdn-storage_1.0.4_1676003782558_0.19995574874772082"},"_hasShrinkwrap":false}},"time":{"created":"2023-02-10T04:36:22.470Z","1.0.4":"2023-02-10T04:36:22.770Z","modified":"2023-02-10T04:36:22.918Z"},"maintainers":[{"name":"cantfindkernel","email":"mrsariablue@protonmail.com"}],"description":"![GitHub](https://img.shields.io/github/license/69/bunnycdn-storage-js?style=flat-square) [![npm](https://img.shields.io/npm/v/bunnycdn-storage?style=flat-square)](https://www.npmjs.com/package/bunnycdn-storage)","homepage":"https://github.com/69/bunnycdn-storage#readme","repository":{"type":"git","url":"git+https://github.com/69/bunnycdn-storage.git"},"bugs":{"url":"https://github.com/69/bunnycdn-storage/issues"},"license":"MIT","readme":"# bunnycdn-storage\n![GitHub](https://img.shields.io/github/license/69/bunnycdn-storage-js?style=flat-square) [![npm](https://img.shields.io/npm/v/bunnycdn-storage?style=flat-square)](https://www.npmjs.com/package/bunnycdn-storage)\n\na small wrapper for the [bunnycdn](https://bunnycdn.com) storage api\n\n# Building\ninstall dependencies with npm/yarn and then run `npm build` or `yarn build`\n\n# Usage\n```js\nconst BunnyStorage = require('bunnycdn-storage').default;\n\n// No region specified, defaults to Falkenstein (storage.bunnycdn.com)\nconst bunnyStorage = new BunnyStorage('API-KEY', 'STORAGE-ZONE-NAME');\n// Specific region (ny.storage.bunnycdn.com)\nconst bunnyStorageRegion = new BunnyStorage('API-KEY', 'STORAGE-ZONE-NAME', 'ny');\n\n\n// list all files in zone / path\nconst files = await bunnyStorage.list();\nconst filesInDir = await bunnyStorage.list('/images');\n\n// upload a file from buffer or filename\nbunnyStorage.upload('/tmp/bunny.jpg');\nbunnyStorage.upload(fs.readFileSync('/tmp/bunny.jpg'), 'bunny.jpg')\n\n// download a file from the servers\nbunnyStorage.download('bunny.jpg'); // Buffer (default)\nbunnyStorage.download('bunny.jpg', 'arraybuffer'); // Buffer\nbunnyStorage.download('bunny.jpg', 'stream'); // ReadableStream\n\n// delete a file\nbunnyStorage.delete('bunny.jpg');\n```\n# Disclaimer\nNote that this project and the maintainer(s) of this repository are in no way, shape or form affiliated with BunnyCDN.\n","readmeFilename":"README.md"}