1.0.2 • Published 4 years ago
ctrl-xcv v1.0.2
ctrl-xcv
A synchronous easy-to-use antifeature-rich dir/file move/copy/paste lib/cli.
Made mainly to test out publishing to npm.
Install
Run
npm i ctrl-xcv
Usage
On the cli:
ctrl-xcv source target [options]
where the [options]
are:
-x
to move-c
to copy-f
to write totarget
even iftarget
is not empty
As a module:
const ctrl = require('ctrl-xcv');
//Copy item
ctrl.c("/path/of/source", "/path/to/copy/to");
//Move item
ctrl.x("/path/of/source", "/path/to/copy/to");
//Last argument forces overwrite to target
ctrl.c("/path/of/source", "/path/that/already/has/something");