filecopy
Copy files.
Last updated 3 months ago by okunishinishi .
MIT · Repository · Bugs · Original npm · Tarball
$ cnpm install filecopy 
SYNC missed versions from official npm registry.

filecopy

Build Status npm Version JS Standard

Copy files.

Installation

npm install filecopy --save

Usage

Copy a Single File

#!/usr/bin/env/node
'use strict'

const filecopy = require('filecopy')

filecopy('src/some-text01.txt', 'dest/some-text01-copy.txt', {
  mkdirp: true
}).then(() => {
  /* ... */
});

Copy Multiple Files

#!/usr/bin/env node
'use strict'

const filecopy = require('filecopy')

// Copy all files in src directory to dir.
filecopy('src/*.txt', 'dest', {}).then(() => {
  /* ... */
})

License

This software is released under the MIT License.


Copyright 2014 - 2016 © taobao.org |