Rename file with NPM
Sure. npm script
can run any node js file you want.
For example:
require('fs').rename(oldPath,newPath)
More Info:
- https://nodejs.org/api/fs.html#fs_fs_rename_oldpath_newpath_callback
- https://docs.npmjs.com/misc/scripts
Turns out the npm library cash offers several basic command line utilities that can be run as a single line command from a package.json. For renaming, you can use the sub-package cash-mv to rename a specific file.