destglob
Small utility to generate a dest glob from a glob and a dest
Usage
import destglob from 'destglob';
destglob('src/**/*.js', 'tmp'); // ['tmp/src/**/*.js'];
// process.cwd() === '/home/me/myproject'
destglob('/home/me/myproject/src/**/*.js', 'tmp'); // ['tmp/src/**/*.js'];
destglob(['src/**/*.js', 'test/**/*.js'], 'tmp'); // ['tmp/src/**/*.js', 'tmp/test/**/*.js'];
destglob('../src/**/*.js', 'tmp'); // ['src/**/*.js'];
destglob('src/../**/*.js', 'tmp'); // ['tmp/**/*.js'];
License
destglob is MIT licensed.
© 2016-2017 Jason Lenoble