Comparing version 1.0.1 to 1.0.2
@@ -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
5
+ Addedchalk@^1.1.3
+ Addedansi-regex@2.1.1(transitive)
+ Addedansi-styles@2.2.1(transitive)
+ Addedchalk@1.1.3(transitive)
+ Addedescape-string-regexp@1.0.5(transitive)
+ Addedhas-ansi@2.0.0(transitive)
+ Addedstrip-ansi@3.0.1(transitive)
+ Addedsupports-color@2.0.0(transitive)
- Removedcolors@^1.1.2
- Removedcolors@1.4.0(transitive)