2.0.0 • Published 4 years ago

copie v2.0.0

Weekly downloads
134
License
MIT
Repository
github
Last release
4 years ago

copie npm

Copy a file.

  • no CLI
  • no globs
  • no mkdir -p
  • no side effects such as stdout
  • Promise only API
  • preserve uid, gid, mode, atime and mtime stats

Install

$ yarn add copie

Usage

import copie from 'copie'

copie('/from/file/path', '/to/file/path')
  .then(() => console.log('done'))
  .catch(console.error)