copy-no-overwrite

Copies a file or directory without overwriting any existing files. (apparently no other libraries do this correctly)

Usage no npm install needed!

<script type="module">
  import copyNoOverwrite from 'https://cdn.skypack.dev/copy-no-overwrite';
</script>

README

Surprisingly there doesn't seem to be an npm package that supports copying a file/folder without overwriting if the same filename already exists.

This is a simple modification of fs-extra's copySync