Comparing version 2.0.0 to 2.0.1
{ | ||
"name": "mv", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "fs.rename but works across devices. same as the unix utility 'mv'", | ||
@@ -27,10 +27,17 @@ "main": "index.js", | ||
"devDependencies": { | ||
"proxyquire": "~0.3.4", | ||
"mocha": "~1.6.0" | ||
"mocha": "~1.20.1", | ||
"proxyquire": "~1.0.1" | ||
}, | ||
"dependencies": { | ||
"ncp": "~0.4.2", | ||
"rimraf": "~2.2.6", | ||
"mkdirp": "~0.3.5" | ||
"mkdirp": "~0.5.0", | ||
"ncp": "~0.5.1", | ||
"rimraf": "~2.2.8" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/andrewrk/node-mv/issues" | ||
}, | ||
"homepage": "https://github.com/andrewrk/node-mv", | ||
"directories": { | ||
"test": "test" | ||
} | ||
} |
@@ -28,2 +28,3 @@ [![Build Status](https://secure.travis-ci.org/andrewrk/node-mv.png)](http://travis-ci.org/andrewrk/node-mv) | ||
```js | ||
mv('source/file', 'dest/file', {clobber: false}, function(err) { | ||
@@ -33,1 +34,2 @@ // done. If 'dest/file' exists, an error is returned | ||
}); | ||
``` |
@@ -18,3 +18,3 @@ var assert = require('assert'); | ||
it("should rename a file on the same device", function (done) { | ||
var mv = proxyquire.resolve('../index', __dirname, {}); | ||
var mv = proxyquire('../index', {}); | ||
@@ -33,3 +33,3 @@ mv("test/a-file", "test/a-file-dest", function (err) { | ||
it("should not overwrite if clobber = false", function (done) { | ||
var mv = proxyquire.resolve('../index', __dirname, {}); | ||
var mv = proxyquire('../index', {}); | ||
@@ -43,3 +43,3 @@ mv("test/a-file", "test/a-folder/another-file", {clobber: false}, function (err) { | ||
it("should not create directory structure by default", function (done) { | ||
var mv = proxyquire.resolve('../index', __dirname, {}); | ||
var mv = proxyquire('../index', {}); | ||
@@ -53,3 +53,3 @@ mv("test/a-file", "test/does/not/exist/a-file-dest", function (err) { | ||
it("should create directory structure when mkdirp option set", function (done) { | ||
var mv = proxyquire.resolve('../index', __dirname, {}); | ||
var mv = proxyquire('../index', {}); | ||
@@ -71,3 +71,3 @@ mv("test/a-file", "test/does/not/exist/a-file-dest", {mkdirp: true}, function (err) { | ||
it("should work across devices", function (done) { | ||
var mv = proxyquire.resolve('../index', __dirname, {fs: mock_fs}); | ||
var mv = proxyquire('../index', {fs: mock_fs}); | ||
mv("test/a-file", "test/a-file-dest", function (err) { | ||
@@ -85,3 +85,3 @@ assert.ifError(err); | ||
it("should move folders", function (done) { | ||
var mv = proxyquire.resolve('../index', __dirname, {}); | ||
var mv = proxyquire('../index', {}); | ||
@@ -100,3 +100,3 @@ mv("test/a-folder", "test/a-folder-dest", function (err) { | ||
it("should move folders across devices", function (done) { | ||
var mv = proxyquire.resolve('../index', __dirname, {fs: mock_fs}); | ||
var mv = proxyquire('../index', {fs: mock_fs}); | ||
@@ -103,0 +103,0 @@ mv("test/a-folder", "test/a-folder-dest", function (err) { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
7692
1
0
34
+ Addedminimist@1.2.8(transitive)
+ Addedmkdirp@0.5.6(transitive)
+ Addedncp@0.5.1(transitive)
- Removedmkdirp@0.3.5(transitive)
- Removedncp@0.4.2(transitive)
Updatedmkdirp@~0.5.0
Updatedncp@~0.5.1
Updatedrimraf@~2.2.8