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

@knit/logger

Package Overview
Dependencies
Maintainers
2
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@knit/logger - npm Package Compare versions

Comparing version 0.0.0-5bd66a9 to 0.0.0-fffbbe9

38

index.js

@@ -1,25 +0,31 @@

/* @flow */
"use strict";
const chalk = require("chalk");
const updateRdrr = require("listr-update-renderer");
const silentRdrr = require("listr-silent-renderer");
const verboseRdrr = require("listr-verbose-renderer");
type TLog = (...e: Array<mixed>) => void;
const info = (...msg) => console.log(chalk.blue("info"), ...msg);
const info: TLog = (...msg) => console.log(chalk.blue("info"), ...msg);
const command: TLog = (...msg) => console.log(chalk.blue("command"), ...msg);
const warning: TLog = (...msg) => console.log(chalk.yellow("warning"), ...msg);
const error: TLog = (...msg) => console.log(chalk.red("error"), ...msg);
const success: TLog = (...msg) => console.log(chalk.green("success"), ...msg);
const missing: TLog = (...msg) => console.log(chalk.red("missing"), ...msg);
const subtree: TLog = (...msg) => console.log(chalk.white("└─"), ...msg);
const command = (...msg) => console.log(chalk.blue("command"), ...msg);
export type TGetRenderer = {
silent: boolean,
verbose: boolean
};
const warning = (...msg) => console.log(chalk.yellow("warning"), ...msg);
const getRenderer = (opts: TGetRenderer) => {
const { silent, verbose } = opts || {};
const error = (...msg) => console.log(chalk.red("error"), ...msg);
const success = (...msg) => console.log(chalk.green("success"), ...msg);
const missing = (...msg) => console.log(chalk.red("missing"), ...msg);
const subtree = (...msg) => console.log(chalk.white("└─"), ...msg);
const getRenderer = opts => {
const {
silent,
verbose
} = opts || {};
if (silent) {

@@ -43,2 +49,2 @@ return silentRdrr;

getRenderer
};
};
{
"homepage": "https://github.com/knitjs/knit#readme",
"license": "MIT",
"author": {
"name": "Shane Wilson"
},
"bugs": {
"url": "https://github.com/knitjs/knit/issues"
},
"repository": {
"type": "git",
"url": "git+https://github.com/knitjs/knit.git"
},
"engines": {
"node": ">=10",
"npm": ">=5"
},
"private": false,
"name": "@knit/logger",
"description": "cli logger",
"version": "0.0.0-5bd66a9"
"description": "cli-logger",
"version": "0.0.0-fffbbe9",
"dependencies": {
"chalk": "3.0.0-beta.1",
"listr-silent-renderer": "^1.1.1",
"listr-update-renderer": "^0.5.0",
"listr-verbose-renderer": "^0.5.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