1.0.4 • Published 4 years ago

sync-copydir v1.0.4

Weekly downloads
1
License
ISC
Repository
-
Last release
4 years ago

sync-copydir

a async copydir utils for nodejs

Installing

npm i sync-copydir

or

yarn add sync-copydir

Usage

copydir('path/from', 'path/to', config)`

Example

move all of files from 'aaa' folder to 'bbb' folder move 'bbb' folder to 'ccc' folder

Usage1

const path = require('path')
const copydir = require('sync-copydir')

copydir(path.join(__dirname, './aaa'), path.join(__dirname, './bbb'),{

})

Usage2

const path = require('path')
const copydir = require('sync-copydir')

copydir('./aaa','./bbb',{
    relative: true
})

config

propertytypedefaultdescription
relativeboolfalseOutput static directory(copy('./fileA','./fileB'))