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

@kitql/helper

Package Overview
Dependencies
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@kitql/helper - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

3

index.d.ts

@@ -1,1 +0,2 @@

export type { Log, logGreen, logCyan, logRed } from './Log';
export { type Logger } from 'pino';
export { Log, logCyan, logGreen, logRed } from './Log';
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
const pino = _interopDefault(require('pino'));
function logGreen(str) {
return `\x1b[32m${str}\x1b[37m\x1b[0m`;
}
function logRed(str) {
return `\u001B[31m${str}\x1b[37m\x1b[0m`;
}
function logCyan(str) {
return `\x1b[36m${str}\x1b[37m\x1b[0m`;
}
class Log {
constructor(toolName) {
this.toolName = toolName;
this.logger = pino({
transport: {
target: 'pino-pretty',
options: {
colorize: true
}
}
});
}
info(msg) {
this.logger.info(`[${this.toolName}] - ${msg}`);
}
error(msg) {
this.logger.error(`[${this.toolName}] - ${msg}`);
}
}
exports.Log = Log;
exports.logCyan = logCyan;
exports.logGreen = logGreen;
exports.logRed = logRed;
{
"name": "@kitql/helper",
"version": "0.0.1",
"version": "0.0.2",
"dependencies": {

@@ -14,2 +14,5 @@ "pino": "7.6.5",

"license": "MIT",
"engines": {
"node": "17.4.0"
},
"main": "index.js",

@@ -16,0 +19,0 @@ "module": "index.mjs",

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