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

copy2cb

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

copy2cb - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

4

copy.js

@@ -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"
}
}
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