Hello everyone! Hope y'all have a great time with family and friends this season and be ready for the new year.
As we are getting back to work, I would like to take the time to introduce a side project that I have been working on, called rclone.js
.
Homepage: https://rclone.js.org/
GitHub: GitHub - sntran/rclone.js
NPM: https://www.npmjs.com/package/rclone.js
As the name indicates, it's a Javascript wrapper around rclone
, specifically in Node. Besides providing a Javascript API to integrate into your existing project, it also provides a CLI. Wait, I know what you are thinking. rclone
is already a CLI, why having another CLI on top of it?
For my use case, it's easier for me to maintain rclone
, as I work in Node.js a lot of time.
But as of version 0.6.0, the CLI allows us to use custom command that can be written in Javascript. This allows Javascript developers like me to have desired functionality faster than trying to figuring out Go.
For example, I have a custom command, aptly named rclone-archive
, which will be published soon after ironing out some quirks. This command lets us archiving a remote path into another remote path, and can be used soon, while waiting for Streaming archive/unarchive capabilities · Issue #2815 · rclone/rclone · GitHub to be implemented.
The usage would be npx rclone archive source:path dest:path
.
Besides supporting new functionality, rclone.js
also allows us to override existing commands to add support for more backends or flags. Imagine adding a new cloud provider with copy
or move
.
Anyway, I hope it can be useful to some of us, and I really appreciate any feedback.