Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

fredrick

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fredrick - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

5

index.js

@@ -43,3 +43,6 @@ 'use strict';

if (!plugin) return;
if (!plugin) {
this.error('Invalid command');
return this.exit(1);
}

@@ -46,0 +49,0 @@ var options = minimist(args.slice(1));

2

package.json
{
"name": "fredrick",
"version": "1.1.0",
"version": "1.1.1",
"description": "simple module for writing your spiffy command line tools",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -325,2 +325,22 @@ var test = require('tape');

test('Fredrick handles invalid commands', function(t) {
var fakeStderr = { write: sinon.spy() };
var fakeExit = sinon.spy();
var fredrick = new Fredrick('fredrick', {
stderr: fakeStderr, exit: fakeExit
});
var args = ['testing'];
fredrick.respond(args);
t.plan(2);
t.ok(fakeStderr.write.calledWith('Invalid command\n'), 'writes error');
t.ok(fakeExit.calledWith(1), 'exits cleanly');
});
test('Fredrick responds to usage command', function(t) {

@@ -327,0 +347,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