New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

throwlog

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

throwlog

_When you just want to throw some logging into the CLI_

latest
Source
npmnpm
Version
1.0.5
Version published
Weekly downloads
11
Maintainers
1
Weekly downloads
 
Created
Source

ThrowLog

When you just want to throw some logging into the CLI

Install with yarn or npm

yarn add throwlog

npm -i throwlog

Normal usage:

import {dump, info, success, warn, error, kill} from 'throwlog';
  • info, success, warn, error will print a string in a colorfull box to stdout

  • dump will take any data structure and print it nicely to stderr

  • kill will halt the program after dumping first parameter and error'ing the second parameter (if any). Both to stderr

Examples

let email = process.env.EMAIL || kill('Please set EMAIL')
info('About to fix things')
let data = fixThings()
success('Things fixed')
dump(data)

FAQs

Package last updated on 20 Jul 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts