Socket
Socket
Sign inDemoInstall

flinch

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

flinch - npm Package Compare versions

Comparing version 0.1.0 to 0.2.0

lib/commands/at.js

12

lib/flinch.js
var flinch = require('commander')
, server = require('./server')
, on = require('./on')
, at = require('./at')
, gg = require('./gg')
, flush = require('./flush')
, server = require('./commands/server')
, on = require('./commands/on')
, at = require('./commands/at')
, gg = require('./commands/gg')
, flush = require('./commands/flush')
, pjson = require('../package.json');

@@ -17,2 +17,3 @@

.description('start a flinch server')
.option('-g, --growl', 'enable growl notifications')
.action(server.start);

@@ -23,2 +24,3 @@

.description('alias for server command')
.option('-g, --growl', 'enable growl notifications')
.action(server.start);

@@ -25,0 +27,0 @@

{
"name": "flinch",
"version": "0.1.0",
"version": "0.2.0",
"description": "Multitask with cat-like reflexes",
"author": "Bilal Quadri",
"license": "MIT",
"preferGlobal": true,
"scripts": {
"test": "mocha",
"cover": "istanbul cover _mocha -- -u exports -R spec",
"travis-test": "node ./node_modules/istanbul/lib/cli.js cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec && ((cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js) || exit 0)"
},
"repository": {
"type": "git",
"url": "git://github.com/bilalq/flinch.git"
},
"keywords": [

@@ -24,4 +24,6 @@ "flinch",

],
"author": "Bilal Quadri",
"license": "MIT",
"repository": {
"type": "git",
"url": "git://github.com/bilalq/flinch.git"
},
"bugs": {

@@ -39,10 +41,11 @@ "url": "https://github.com/bilalq/flinch/issues"

"cli-color": "0.2.x",
"underscore": "1.5.x"
"underscore": "1.5.x",
"growl": "1.7.x"
},
"devDependencies": {
"mocha": "1.17.x",
"sinon": "1.7.x",
"chai": "1.8.x",
"sinon-chai": "2.4.x"
"sinon": "1.8.x",
"chai": "1.9.x",
"sinon-chai": "2.5.x"
}
}

@@ -59,2 +59,6 @@ flinch

Option for server command:
-g, --growl enable growl notifications
Option for gg and at commands:

@@ -61,0 +65,0 @@

@@ -1,7 +0,7 @@

var onCmd = require('../../lib/on')
, atCmd = require('../../lib/at')
, ggCmd = require('../../lib/gg')
, flushCmd = require('../../lib/flush')
, serverCmd = require('../../lib/server')
, events = require('../../lib/events');
var onCmd = require('../../lib/commands/on')
, atCmd = require('../../lib/commands/at')
, ggCmd = require('../../lib/commands/gg')
, flushCmd = require('../../lib/commands/flush')
, serverCmd = require('../../lib/commands/server')
, events = require('../../lib/services/event_manager');

@@ -8,0 +8,0 @@ describe('Acceptance spec', function() {

@@ -11,7 +11,24 @@ // Test helpers

// Styled string matchers
global.styleMatch = {
startsAndEndsWith: function(str, start, end) {
return str.startsWith(start) && str.endsWith(end);
}
, green: function(str) {
return styleMatch.startsAndEndsWith(str, '\u001b[32', '\u001b[39m');
}
, red: function(str) {
return styleMatch.startsAndEndsWith(str, '\u001b[31', '\u001b[39m');
}
, bold: function(str) {
return styleMatch.startsAndEndsWith(str, '\u001b[1', '\u001b[22m');
}
};
// Easy muting/unmuting of console.log
var muted = false;
var console_logger = console.log;
global.mute = function() {
if (!muted) {
sinon.stub(console, 'log');
console.log = function() {};
muted = true;

@@ -21,5 +38,5 @@ }

global.unmute = function() {
if (console.log.restore) {
if (muted) {
muted = false;
console.log.restore();
console.log = console_logger;
}

@@ -26,0 +43,0 @@ };

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