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

bang

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bang - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

25

lib/bang.js
(function() {
var Bang, Command, exec, fs, os, path;
var Bang, Command, exec, fs, path;
var __slice = Array.prototype.slice;

@@ -13,4 +13,2 @@

os = require("os");
module.exports = Bang = (function() {

@@ -25,3 +23,3 @@

program = new Command;
program.version("0.1.1").usage("[options] [key] [value]").option("-d, --delete", "delete the specified key").option("-h, --help", "get help").parse(args);
program.version("0.1.2").usage("[options] [key] [value]").option("-d, --delete", "delete the specified key").option("-h, --help", "get help").parse(args);
_ref = program.args, key = _ref[0], value = _ref[1];

@@ -99,6 +97,17 @@ if (program.help) {

var copyCommand;
copyCommand = os.type().match(/darwin/i) ? "pbcopy" : "xclip -selection clipboard";
exec("printf '" + (value.replace(/\'/g, "\\'")) + "' | " + copyCommand, function(error, stdout, stderr) {
if (error) throw error;
});
copyCommand = (function() {
switch (process.platform) {
case "darwin":
return "pbcopy";
case "win32":
return "clip";
default:
return "xclip -selection clipboard";
}
})();
if (process.platform === "win32") {
exec("echo " + (value.replace(/\'/g, "\\'")) + " | " + copyCommand);
} else {
exec("printf '" + (value.replace(/\'/g, "\\'")) + "' | " + copyCommand);
}
return this;

@@ -105,0 +114,0 @@ };

@@ -5,3 +5,3 @@ {

"description": "Text snippets on the command line.",
"version": "0.1.1",
"version": "0.1.2",
"homepage": "https://github.com/jimmycuadra/bang",

@@ -8,0 +8,0 @@ "repository": {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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