1.0.5 • Published 5 years ago

@hankychung/node-copy-dir v1.0.5

Weekly downloads
-
License
ISC
Repository
github
Last release
5 years ago

description

copy the whole directory from here to there

usage

const copyDir = require('@hankychung/node-copy-dir')

copyDir('./somewhere/src', './other/dest').then(() => {
  // the whole `src` directory will be copied to the `dest` directory, if the promise is resolved
}).catch(e => {
  console.log(e)
})

params

example: copyDir(srcPath, destPath, isIncludeRootFolder)

srcPath

type: string

desc: the source directory path

destPath

type: string

desc: the destination path

isIncludeRootFolder

type: boolean

desc: copy with the source directory's root folder or not

default: true

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago