1.0.2 • Published 4 years ago

ctrl-xcv v1.0.2

Weekly downloads
3
License
MIT
Repository
github
Last release
4 years ago

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 to target even if target 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");
1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago