4.1.0 • Published 3 months ago

renamify v4.1.0

Weekly downloads
402
License
MIT
Repository
github
Last release
3 months ago

Renamify License NPM version Build Status Coverage Status

Rename group of files from a directory.

Install

npm i renamify --save

API

import renamify from 'renamify';

const dir = '/';
const from = ['bin'];

const to = ['super-bin'];

await renamify(dir, from, to);

Full:

import renamify from 'renamify';

const dir = '/';
const from = ['/bin/hello'];

const to = ['/super-bin'];

await renamify(dir, from, to

Or with try-to-catch`:

import renamify from 'renamify';
import tryToCatch from 'try-to-catch';

const dir = '/';
const from = ['bin'];

const to = ['super-bin'];

const [error] = await tryToCatch(renamify, dir, from, to);

console.log(error || 'done');

Related

License

MIT

4.1.0

3 months ago

4.0.0

3 months ago

3.0.2

6 years ago

3.0.1

7 years ago

3.0.0

7 years ago

2.0.0

7 years ago

1.1.0

8 years ago

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago