Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

mv

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mv - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

19

package.json
{
"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) {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc