{"_id":"cdn-img-fetch","_rev":"5-1ec0f8a0dda7fbb7cab4169169e69213","name":"cdn-img-fetch","dist-tags":{"latest":"1.0.4"},"versions":{"1.0.0":{"name":"cdn-img-fetch","version":"1.0.0","keywords":["cdn","image","cache","fetch","download","assets"],"author":{"name":"devtools-community"},"license":"MIT","_id":"cdn-img-fetch@1.0.0","maintainers":[{"name":"malfexteste2","email":"pescaria.guinado.3o@icloud.com"}],"dist":{"shasum":"bbe47b192f36c7cbf47d02f35fd1a3448aab7aa2","tarball":"https://registry.npmjs.org/cdn-img-fetch/-/cdn-img-fetch-1.0.0.tgz","fileCount":3,"integrity":"sha512-lQ0CYe38ls2tLv7IhICUTIfG7CXYrERd3zi1OqjbUJOPt+SM/lbpnvit9KB70uG04pWXMyJPMc8Hczun0Ig1nw==","signatures":[{"sig":"MEQCIAhfO0Jr8HM9EIZIMnSkllHv/8Okmd6pJ56UiwacMp9cAiAwArt6B+Hp6nbEkKMQpC6x8WqtDVGwcKN45LNVHjOVMA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":2007},"main":"index.js","_npmUser":{"name":"malfexteste2","email":"pescaria.guinado.3o@icloud.com"},"_npmVersion":"11.19.0","description":"Fetch and cache CDN images locally for web projects","directories":{},"_nodeVersion":"26.7.0","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/cdn-img-fetch_1.0.0_1790389087603_0.48789916469926586","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"cdn-img-fetch","version":"1.0.1","keywords":["cdn","image","cache","fetch","download","assets"],"author":{"name":"devtools-community"},"license":"MIT","_id":"cdn-img-fetch@1.0.1","maintainers":[{"name":"malfexteste2","email":"pescaria.guinado.3o@icloud.com"}],"dist":{"shasum":"c338db4cd963b9f47dd39a927964548de2f89d94","tarball":"https://registry.npmjs.org/cdn-img-fetch/-/cdn-img-fetch-1.0.1.tgz","fileCount":3,"integrity":"sha512-o3YZzMhECHlc5gcA7zNq8PnLzf39XaP+k6KtsR7NsVKmz1I5DS8eKunQolHh/v80go3F11bVbySjsByZdhRD5Q==","signatures":[{"sig":"MEUCIATI+ZMEMuZR+k+h1ZrC46OC7SLpbg0rY+zceLDJzb67AiEAu6uuQPHCjr69ap/6KkynXY9QaulwEx3eP4fq2StKGEE=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCIH1/Az/UPsH9nwqw31VacEUoOjQFAGwHQvKL0+qUMo+GAiEAnXpApMV6+YqE16ZDrH9FnRp/HSh8GjO3n0f5D7Vgmn4=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":2007},"main":"index.js","_npmUser":{"name":"malfexteste2","email":"pescaria.guinado.3o@icloud.com"},"_npmVersion":"11.19.0","description":"Fetch and cache CDN images locally for web projects","directories":{},"_nodeVersion":"26.7.0","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/cdn-img-fetch_1.0.1_1790391780050_0.8303999005183913","host":"s3://npm-registry-packages-npm-production"}},"1.0.2":{"name":"cdn-img-fetch","version":"1.0.2","keywords":["cdn","image","cache","fetch","download","assets"],"author":{"name":"devtools-community"},"license":"MIT","_id":"cdn-img-fetch@1.0.2","maintainers":[{"name":"malfexteste2","email":"pescaria.guinado.3o@icloud.com"}],"dist":{"shasum":"3f47cb1b5519c768cf0c6f843e8e7c8d49c197ea","tarball":"https://registry.npmjs.org/cdn-img-fetch/-/cdn-img-fetch-1.0.2.tgz","fileCount":3,"integrity":"sha512-m8dXAgqHuXqgXANbtbLfioBW1d9zWDLVZzcDS+DukUNkjbxcWh049oGVDexempQOjYbHAZ9qDZX5EGbrKtiKVA==","signatures":[{"sig":"MEYCIQDcN4xPZKAXyvNPUC0VFZ1k+SZ2LkWIvd9ro3hF1wn1xgIhAL0DynPdozVYdjwPyAR6+Z/nT7llyifUVigGYuMd9m+O","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEYCIQCOCkYaOJnpX7eVjAALrIxVQMOFw5OW0FtEnb/kMza8NAIhAN5V5UlJcSCU0FQonh26YezXYdCzB8ciTO861LwHquPy","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":2154},"main":"index.js","_npmUser":{"name":"malfexteste2","email":"pescaria.guinado.3o@icloud.com"},"_npmVersion":"11.19.0","description":"Fetch and cache CDN images locally for web projects","directories":{},"_nodeVersion":"26.7.0","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/cdn-img-fetch_1.0.2_1790571128600_0.11247195388614384","host":"s3://npm-registry-packages-npm-production"}},"1.0.3":{"name":"cdn-img-fetch","version":"1.0.3","keywords":["cdn","image","cache","fetch","download","assets"],"author":{"name":"devtools-community"},"license":"MIT","_id":"cdn-img-fetch@1.0.3","maintainers":[{"name":"malfexteste2","email":"pescaria.guinado.3o@icloud.com"}],"dist":{"shasum":"d19b3cc1ff2faaf5484f1e1c5d9c04260baecba5","tarball":"https://registry.npmjs.org/cdn-img-fetch/-/cdn-img-fetch-1.0.3.tgz","fileCount":3,"integrity":"sha512-hBlGfEG6/wsfE8NPs4WDgZds+9W5QTCyJYVmV+QxKzUi38dRME4WpgMFu1e1xgw4GCWjxBdm4f7lhKkukC/oVA==","signatures":[{"sig":"MEYCIQC3iwtlQYl9hqKqvQNm9oNYpvfwWttXBp14QelkCs1n+gIhANzpBJXXQCEL1lFZJkiDPzlkHIj+uIMvW7zGoX2297fD","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCIQCgz4WdMtHcCkG0o8vK1rLLYQ/YC4LqiIfGWsUGYKgjpgIgWDPVYCkqPVzlMDVuu2VVxYzm4egTgyhPknuPRRZiqAc=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":2168},"main":"index.js","_npmUser":{"name":"malfexteste2","email":"pescaria.guinado.3o@icloud.com"},"_npmVersion":"11.19.0","description":"Fetch and cache CDN images locally for web projects","directories":{},"_nodeVersion":"26.7.0","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/cdn-img-fetch_1.0.3_1790739797473_0.1857780994921976","host":"s3://npm-registry-packages-npm-production"}},"1.0.4":{"_id":"cdn-img-fetch@1.0.4","dist":{"shasum":"fa90eb483be5748736004c1f52497b417d3de042","tarball":"https://registry.npmjs.org/cdn-img-fetch/-/cdn-img-fetch-1.0.4.tgz","fileCount":3,"integrity":"sha512-/yoR1zS7aOWloUF3xVyZOp+KMOG+FB3JDFpM5aWFA0uFVMPd26q1SR530m1+LmYroJSQDGVNouqmsF39WIGy4A==","signatures":[{"sig":"MEUCIQDxnLWuLtWDIRTPRYWc+ZrJSdxtWD4PTBe7z3rxj60piwIgATk2G47qLUP5pQ7DlAebXnoV/sw317OQbzydXhy1TLY=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCfUicYoGad/HkENlOIdc/OOG3t53e19v8LYl6Kh2+1qgIhAPMKSJE67iKbmdB1zOS/BjqMHAoSMb0BD9Y3tbKqtKzp"}],"unpackedSize":1344},"main":"index.js","name":"cdn-img-fetch","author":{"name":"devtools-community"},"license":"MIT","version":"1.0.4","_npmUser":{"name":"malfexteste2","email":"pescaria.guinado.3o@icloud.com"},"keywords":["cdn","image","cache","fetch","download","assets"],"_npmVersion":"11.19.0","description":"Fetch and cache CDN images locally for web projects","directories":{},"maintainers":[{"name":"malfexteste2","email":"pescaria.guinado.3o@icloud.com"}],"_nodeVersion":"26.7.0","_hasShrinkwrap":false,"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/cdn-img-fetch_1.0.4_1790809647406_0.11580178473933644"}}},"time":{"created":"2026-09-26T02:18:07.551Z","modified":"2026-09-30T23:07:27.667Z","1.0.0":"2026-09-26T02:18:07.759Z","1.0.1":"2026-09-26T03:03:00.120Z","1.0.2":"2026-09-28T04:52:08.691Z","1.0.3":"2026-09-30T03:43:17.550Z","1.0.4":"2026-09-30T23:07:27.492Z"},"author":{"name":"devtools-community"},"license":"MIT","keywords":["cdn","image","cache","fetch","download","assets"],"description":"Fetch and cache CDN images locally for web projects","maintainers":[{"name":"malfexteste2","email":"pescaria.guinado.3o@icloud.com"}],"readme":"# cdn-img-fetch\n\nFetch and cache remote CDN images locally for web and Node.js projects.\n\n## Installation\n\n```bash\nnpm install cdn-img-fetch\n```\n\n## Usage\n\n```javascript\nconst { fetchAndCache, getCachePath } = require('cdn-img-fetch');\n\n// Download and cache an image locally\nawait fetchAndCache('https://example.com/banner.png', './cache/banner.png');\n\n// Get internal cache path\nconst cached = getCachePath();\n```\n\n## API\n\n### `fetchAndCache(url, dest)`\n\nDownloads an image from `url` and saves it to `dest`. Returns a Promise.\n\n### `getCachePath()`\n\nReturns the path of the internal cache file used by the module.\n\n## License\n\nMIT\n","readmeFilename":"readme.md"}