🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

imagelogger

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

imagelogger - npm Package Compare versions

Comparing version

to
1.0.2

2

converter.js

@@ -14,3 +14,3 @@ "use strict";

for (let x = 0; x < img.getWidth(); x++) {
const col = img.getPixelColor(x, y).toString(16);
const col = img.getPixelColor(x, y).toString(16).padStart(8, '0');
ary[y][x] = {

@@ -17,0 +17,0 @@ red: parseInt(col[0] + col[1], 16),

@@ -13,3 +13,3 @@ import Jimp from 'jimp';

for (let x = 0; x < img.getWidth(); x++) {
const col = img.getPixelColor(x, y).toString(16);
const col = img.getPixelColor(x, y).toString(16).padStart(8, '0');
ary[y][x] = {

@@ -16,0 +16,0 @@ red: parseInt(col[0] + col[1], 16),

@@ -28,3 +28,3 @@ "use strict";

for (let pixel of row) {
s += chalk_1.bgHex(`#${pixel.red.toString(16)}${pixel.green.toString(16)}${pixel.blue.toString(16)}`)(' ');
s += chalk_1.bgHex(`#${pixel.red.toString(16).padStart(2, '0')}${pixel.green.toString(16).padStart(2, '0')}${pixel.blue.toString(16).padStart(2, '0')}`)(' ');
}

@@ -31,0 +31,0 @@ s += `\n`;

@@ -35,3 +35,3 @@ import { bgHex } from 'chalk';

for (let pixel of row) {
s += bgHex(`#${pixel.red.toString(16)}${pixel.green.toString(16)}${pixel.blue.toString(16)}`)(' ');
s += bgHex(`#${pixel.red.toString(16).padStart(2, '0')}${pixel.green.toString(16).padStart(2, '0')}${pixel.blue.toString(16).padStart(2, '0')}`)(' ');
}

@@ -38,0 +38,0 @@ s += `\n`;

{
"name": "imagelogger",
"version": "1.0.1",
"version": "1.0.2",
"description": "Shows an image in console.",

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

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet