multi-rename

2.0.2 • Public • Published

Multi Rename NPM version Dependency Status Build Status Coverage Status

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

Readme

Keywords

Package Sidebar

Install

npm i multi-rename

Weekly Downloads

11

Version

2.0.2

License

MIT

Unpacked Size

4.89 kB

Total Files

5

Last publish

Collaborators

  • coderaiser