deepsweet / copie

πŸ‘―β€β™€οΈ Copy a file

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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)

About

πŸ‘―β€β™€οΈ Copy a file

License:MIT License


Languages

Language:TypeScript 100.0%