https://github.com/deepsweet/copie
👯♀️ Copy a file
https://github.com/deepsweet/copie
clone copy cp
Last synced: about 1 year ago
JSON representation
👯♀️ Copy a file
- Host: GitHub
- URL: https://github.com/deepsweet/copie
- Owner: deepsweet
- License: mit
- Archived: true
- Created: 2018-06-25T19:57:27.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2020-03-27T17:34:11.000Z (about 6 years ago)
- Last Synced: 2024-10-28T14:27:46.291Z (over 1 year ago)
- Topics: clone, copy, cp
- Language: TypeScript
- Size: 536 KB
- Stars: 7
- Watchers: 3
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: readme.md
- License: license.md
Awesome Lists containing this project
README
# copie
**:warning: Project has been transferred to [NexTools metarepo](https://github.com/nextools/metarepo/tree/master/packages/copie)**
[](https://www.npmjs.com/package/copie) [](https://travis-ci.org/deepsweet/copie) [](https://codecov.io/github/deepsweet/copie)
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
```sh
$ yarn add copie
# or
$ npm install copie
```
## Usage
```js
import copie from 'copie'
copie('/from/file/path', '/to/file/path')
.then(() => console.log('done'))
.catch(console.error)
```