/glob-rename

Rename based on globby.

Primary LanguageJavaScriptMIT LicenseMIT

glob-rename

Rename based on globby.

version license size download

installation

npm install -S @feizheng/glob-rename

usage

import mv from '@feizheng/glob-rename';

mv.sync(['**/*.js'], 'dist', (path)=>{
  path.ext = path.ext.replace('js', 'jsx');
})

license

Code released under the MIT license.