1.3.1 • Published 9 months ago

@lxf2513/node-mv v1.3.1

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

node-mv

The 'mv' command implementation for nodejs.It will create all the necessary directories and destination file which not exist.

Installation

npm install @lxf2513/node-mv

Usage

import { mv } from '@lxf2513/node-mv'
// or
import { createRequire } from 'node:module'
const require = createRequire(import.meta.url)
const { mv } = require('@lxf2513/node-mv')

mv(source, dest, options?)

mv([source1, source2], dest, options?)

*/

Options

  • clobber: If the destination exists, overwrite it, default true
  • mkdirp: It first created all the necessary directories recursively, default false

Command Line Interface

Usage: nodemv [OPTION]... SOURCE... DIRECTORY
Rename SOURCE to DEST, or move SOURCE(s) to DIRECTORY.

  -h, --help         display this help and exit
  -v, --version      output version information and exit
  -n, --no-clobber   do not overwrite an existing file
  --mkdirp           make the dest directory recursively if it not exist
1.3.1

9 months ago

1.3.0

11 months ago

1.2.0

1 year ago

1.1.0

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago