mv

WebJar for mv

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

mv
Last Version

Last Version

2.1.1
Release Date

Release Date

Type

Type

jar
Description

Description

mv
WebJar for mv
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/andrewrk/node-mv

Download mv

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/mv/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>mv</artifactId>
    <version>2.1.1</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/mv/
implementation 'org.webjars.npm:mv:2.1.1'
// https://jarcasting.com/artifacts/org.webjars.npm/mv/
implementation ("org.webjars.npm:mv:2.1.1")
'org.webjars.npm:mv:jar:2.1.1'
<dependency org="org.webjars.npm" name="mv" rev="2.1.1">
  <artifact name="mv" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='mv', version='2.1.1')
)
libraryDependencies += "org.webjars.npm" % "mv" % "2.1.1"
[org.webjars.npm/mv "2.1.1"]

Dependencies

compile (3)

Group / Artifact Type Version
org.webjars.npm : mkdirp jar [0.5.1,0.6)
org.webjars.npm : ncp jar [2.0.0,2.1)
org.webjars.npm : rimraf jar [2.4.0,2.5)

Project Modules

There are no modules declared in this project.

Build Status

Usage:

var mv = require('mv');

mv('source/file', 'dest/file', function(err) {
  // done. it tried fs.rename first, and then falls back to
  // piping the source file to the dest file and then unlinking
  // the source file.
});

Another example:

mv('source/dir', 'dest/a/b/c/dir', {mkdirp: true}, function(err) {
  // done. it first created all the necessary directories, and then
  // tried fs.rename, then falls back to using ncp to copy the dir
  // to dest and then rimraf to remove the source dir
});

Another example:

mv('source/file', 'dest/file', {clobber: false}, function(err) {
  // done. If 'dest/file' exists, an error is returned
  // with err.code === 'EEXIST'.
});

Versions

Version
2.1.1