Skip to content

Latest commit

 

History

History
52 lines (34 loc) · 800 Bytes

README.md

File metadata and controls

52 lines (34 loc) · 800 Bytes

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

property type default description
relative bool false Output static directory(copy('./fileA','./fileB'))