multi-rename
v2.0.2
Published
rename strings of an array according to pattern
Downloads
97
Readme
Multi Rename
Rename strings from an array according to pattern.
Install
npm i multi-rename
Usage
const multiRename = require('multi-rename');
multiRename('[c] - [ymd] - [n][e]', [
'hello.txt',
]);
// returns
'01 - 2019-04-15 - hello.txt'
Patterns
[n]
- name[e]
- extension[c]
- counter[ymd]
- year, month, date
License
MIT