Skip to content
This repository has been archived by the owner on Mar 28, 2020. It is now read-only.

deepsweet/copie

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

copie

⚠️ Project has been transferred to NexTools metarepo

npm tests coverage

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

Requirements

  • Node.js >= 8.6.0

Install

$ yarn add copie
# or
$ npm install copie

Usage

import copie from 'copie'

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