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

blacksun1-chalk-logger

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

blacksun1-chalk-logger

Simple logger that uses chalk to create a human friendly output

latest
npmnpm
Version
1.0.4
Version published
Weekly downloads
6
-50%
Maintainers
1
Weekly downloads
 
Created
Source

blacksun1-chalk-logger

Build Status Coverage Status

A pleasant readable logger for humans.

Usage

First install the package into your application

npm install --save blacksun1-chalk-logger

and then in your code

const LoggerFactory = require("blacksun1-chalk-logger").loggerFactory;
const Package = require("./package.json");

const myLogger = LoggerFactory(Package.name);

myLogger.info("I'm logging!");

or if you use Intavenous you can use the registration package to regisiter it and it's required services into your container.

const LoggerModule = require("blacksun1-chalk-logger").registrationModule;
const Package = require("./package.json");
const Intavenous = require("intavenous");

const container = Intavenous.create();
LoggerModule(container);
const myLogger = container.get("logger", Package.name);

myLogger.info("I'm logging!");

API

Exports the following:

  • logger - The actual logger class. Requires constructor arguments.
  • loggerFactory - A factory function to create an instance of the logger class. Takes a parameter of name to set the name of the logger.
  • registrationModule - A registration module. See blacksun1/ioc-test.

FAQs

Package last updated on 03 Oct 2016

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