download-cache

Cache remote files locally by URL

Usage no npm install needed!

<script type="module">
  import downloadCache from 'https://cdn.skypack.dev/download-cache';
</script>

README

download-cache

NPM version Build status Test coverage Dependency Status License Downloads

var download = require('download-cache');

download('https://archive.org/download/Windows7WildlifeSampleVideo/Wildlife_512kb.mp4').then(function (filename) {
  fs.stat(filename);
});