image-checker
Advanced tools
Comparing version 1.0.2 to 1.0.3
#!/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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
34
32168
137