1.0.2 • Published 3 years ago

node-batch-rename v1.0.2

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

node-batch-rename

This library is for batch renaming of image files, Currently only Windows is supported, And only for Nodejs.

github: ZSX-DB/node-batch-rename (github.com)

// Example
const batchRename = require('node-batch-rename')

// If you don't need to transfer the image file
batchRename({
    isTransfer: false,
    originPath: __dirname + '/images'
})

// Or you need to transfer image files
batchRename({
    isTransfer: true,
    originPath: __dirname + '/images',
    targetPath: 'D:\target'
})

// You can specify naming conventions, support function and strings, but this is not necessary
batchRename({
    isTransfer: false,
    originPath: __dirname + '/images',
    namingRule: ...
})