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.8.0 to 0.8.1

38

index.js

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

"use strict";
/* @flow */
const chalk = require("chalk");
const updateRdrr = require("listr-update-renderer");
const silentRdrr = require("listr-silent-renderer");
const verboseRdrr = require("listr-verbose-renderer");
const info = (...msg) => console.log(chalk.blue("info"), ...msg);
type TLog = (...e: Array<mixed>) => void;
const command = (...msg) => console.log(chalk.blue("command"), ...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 warning = (...msg) => console.log(chalk.yellow("warning"), ...msg);
export type TGetRenderer = {
silent: boolean,
verbose: boolean
};
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 || {};
const getRenderer = (opts: TGetRenderer) => {
const { silent, verbose } = opts || {};
if (silent) {

@@ -49,2 +43,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": ">=4",
"npm": ">=3"
},
"private": false,
"name": "@knit/logger",
"description": "cli logger",
"version": "0.8.0",
"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"
}
"version": "0.8.1"
}
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