Copy a file.
- no CLI
- no globs
- no
mkdir -p
- no side effects such as
stdout
- Promise only API
- preserve
uid
,gid
,mode
,atime
andmtime
stats
$ yarn add copie
import copie from 'copie'
copie('/from/file/path', '/to/file/path')
.then(() => console.log('done'))
.catch(console.error)