javascript - Rename file with NPM -


is there way rename single file in npm scripts? want prepare files distribution, need built files named differently in source...

i have tried orn, seems work on command line, not npm script. i'm looking add cross-platform dependency project, rather writing own javascript script copy files over.

my ideal solution can include in package.json, 1 line command, e.g. rename old-file-name new-file-name

sure. npm script can run node js file want.

for example:

require('fs').rename(oldpath,newpath) 

more info:


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -