Copy files.
npm install filecopy --save
#!/usr/bin/env/node
'use strict'
const filecopy = require('filecopy')
filecopy('src/some-text01.txt', 'dest/some-text01-copy.txt', {
mkdirp: true
}).then(() => {
/* ... */
});
#!/usr/bin/env node
'use strict'
const filecopy = require('filecopy')
// Copy all files in src directory to dir.
filecopy('src/*.txt', 'dest', {}).then(() => {
/* ... */
})
This software is released under the MIT License.