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

image-checker

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

image-checker - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

13

dist/lib/cli.js
#!/usr/bin/env node
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var clc = require("cli-color");
var ImageChecker_1 = require("./checker/ImageChecker");

@@ -10,19 +9,15 @@ var argv = require("yargs")

var pathToImage = argv._[0];
var errorStyle = clc.black.bgRed;
var normalStyle = clc.green;
var successStyle = clc.black.bgGreen;
var warningStyle = clc.black.bgYellow;
console.log(normalStyle("Checking image at '" + pathToImage + "' ..."));
console.log("Checking image at '" + pathToImage + "' ...");
try {
var result = ImageChecker_1.ImageChecker.checkImageAtPath(pathToImage);
if (result.isOk) {
console.log(successStyle(result));
console.log(result);
}
else {
console.warn(warningStyle(result));
console.warn(result);
}
}
catch (error) {
console.error(errorStyle("[error]", error));
console.error("[error]", error);
}
//# sourceMappingURL=main.js.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var clc = require("cli-color");
var ImageChecker_1 = require("./checker/ImageChecker");

@@ -9,19 +8,15 @@ var argv = require("yargs")

var pathToImage = argv._[0];
var errorStyle = clc.black.bgRed;
var normalStyle = clc.green;
var successStyle = clc.black.bgGreen;
var warningStyle = clc.black.bgYellow;
console.log(normalStyle("Checking image at '" + pathToImage + "' ..."));
console.log("Checking image at '" + pathToImage + "' ...");
try {
var result = ImageChecker_1.ImageChecker.checkImageAtPath(pathToImage);
if (result.isOk) {
console.log(successStyle(result));
console.log(result);
}
else {
console.warn(warningStyle(result));
console.warn(result);
}
}
catch (error) {
console.error(errorStyle("[error]", error));
console.error("[error]", error);
}
//# sourceMappingURL=main.js.map
{
"name": "image-checker",
"version": "1.0.2",
"version": "1.0.3",
"description": "Check the quality of an image for defects including blur, under-exposure, over-exposure and low contrast.",

@@ -111,7 +111,5 @@ "keywords": [

"@commitlint/config-conventional": "^7.1.2",
"@types/cli-color": "^0.3.29",
"@types/jest": "^23.3.2",
"@types/node": "^10.11.0",
"@types/yargs": "^12.0.1",
"cli-color": "^1.4.0",
"colors": "^1.3.2",

@@ -118,0 +116,0 @@ "commitizen": "^3.0.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