destglob

0.1.4 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i destglob

Weekly Downloads

0

Version

0.1.4

License

MIT

Last publish

Collaborators

  • jlenoble