afeiship / next-filepath-mv

Filepath rename for next.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

next-filepath-mv

Filepath rename for next.

version license size download

installation

npm install -S @jswork/next-filepath-mv

usage

import '@jswork/next-filepath-mv';

nx.filepathMv('/var/lib/nginx/tmp/test.txt',(obj)=>{
  obj.prefix = 'pre_';
  obj.suffix = '_suf';
  obj.name = 'test123';
  return obj;
});

// /var/lib/nginx/tmp/pre_test123_suf.txt

license

Code released under the MIT license.

About

Filepath rename for next.

License:MIT License


Languages

Language:JavaScript 100.0%