Comparing version
@@ -0,4 +1,6 @@ | ||
// Force colors as playing with /dev/tty might disable it | ||
var chalk = require('chalk').enabled = true | ||
var copy = require('copy-paste').copy | ||
var tty = require('./direct_tty') | ||
var label = 'copied to Clipboard: '.green | ||
var label = chalk.green('copied to Clipboard: ') | ||
@@ -5,0 +7,0 @@ module.exports = function (text, callback) { |
// Write directly to the terminal to avoid passing | ||
// undesired logs to process.stdout | ||
// Force colors as playing with /dev/tty might disable it | ||
require('colors').enabled = true | ||
var fs = require('fs') | ||
@@ -8,0 +5,0 @@ var ttyFound = true |
{ | ||
"name": "copy2cb", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "A small module for CLI tools to write to both process.stdout and clipboard", | ||
@@ -24,5 +24,5 @@ "main": "copy.js", | ||
"dependencies": { | ||
"colors": "^1.1.2", | ||
"chalk": "^1.1.3", | ||
"copy-paste": "^1.2.0" | ||
} | ||
} |
2601
-1.29%5
-16.67%+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
- Removed
- Removed