Nomine
File rename as express middleware.
Install
npm i nomine --save
API
const express = ;const app = ; app
Usage Example
After starting web-server with used nomine
middleware it waits for payload sended on /rename
url (by default).
Payload could look this way:
$ curl -X PUT -d '{"dir":"/","from":["bin"], "to": ["bin2"]}' http://localhost:3000/renameEACCES: permission denied, rename '/bin' -> '/bin2'
Related
- Renamify - rename group of files from a directory
License
MIT