New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

rightclick

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rightclick - npm Package Compare versions

Comparing version 0.6.1 to 0.7.0

7

changelog.md
# rightClick Changelog
### 22 April 2014, 0.7.0
* Tap method can now accept additional arguments that will be applied to the callback
* Updated logging to a more 'console' style
### 31 March 2014, 0.6.1
* Added clarity to README for cut with suffix.
* Added clarity to README for cut with suffix

@@ -7,0 +12,0 @@ ### 31 March 2014, 0.6.0

2

lib/paste.js

@@ -11,3 +11,3 @@ var fs = require('fs'),

log.error(target + ' already exists.');
log.error(target, 'already exists.');

@@ -14,0 +14,0 @@ process.exit(1);

@@ -37,3 +37,3 @@ var fs = require('fs'),

log.error(location + ' not found');
log.error(location, 'not found');

@@ -40,0 +40,0 @@ process.exit(1);

module.exports = function (callback) {
callback && callback.call(this);
var args = Array.prototype.slice.call(arguments).slice(1);
callback && callback.apply(this, args);
return this;
};
{
"name": "rightclick",
"description": "Cut, copy, paste and delete for node.js",
"version": "0.6.1",
"version": "0.7.0",
"keywords": [

@@ -24,3 +24,3 @@ "cut",

"dependencies": {
"col": "0.0.5",
"col": "0.1.0",
"underscore": "1.6.0"

@@ -27,0 +27,0 @@ },

@@ -36,3 +36,3 @@ # rightClick [![Build Status](https://secure.travis-ci.org/mattyod/rightClick.png)](http://travis-ci.org/mattyod/rightClick)

As of version 0.6.0 cut now accepts an optional suffix argument which can be either a string or an array. If given rightClick will cut files with the given suffix.
Cut accepts an optional suffix argument which can be either a string or an array. If given rightClick will cut files with the given suffix.

@@ -59,3 +59,3 @@ The following would only cut files with the suffix .js & .css from within subFolder.

As of version 0.6.0 copy now accepts an optional suffix argument which can be either a string or an array. If given rightClick will copy files with the given suffix.
Copy accepts an optional suffix argument which can be either a string or an array. If given rightClick will copy files with the given suffix.

@@ -76,3 +76,3 @@ The following would only copy files with the suffix .js & .css from within subFolder.

As of version 0.5.0 paste now accepts an optional force boolean. This will allow you to paste over existing folders. i.e.
Paste accepts an optional force boolean. This will allow you to paste over existing folders. i.e.

@@ -107,4 +107,15 @@ rightClick('./myParentFolder').copy('myFolder').paste('myNewDestination', true);

Tap can also accept a function and arguments that will be applied to it, i.e:
```
var func = function (a, b) {
console.log(a + b); // 3
};
rightClick('./folder')
.copy('things')
.tap(func, 1, 2);
```
## Licence
[MIT](https://github.com/mattyod/rightclick/blob/master/LICENSE)

@@ -42,4 +42,17 @@

test.done();
},
tapWithArguments: function (test) {
var ans, func = function (a, b) {
ans = a + b;
};
this.rightClick().tap(func, 1, 2);
test.equal(ans, 3,
'function accepted given arguments');
test.done();
}
};
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