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

debug-squasher

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

debug-squasher

debug tool used for app store and other projects.

latest
npmnpm
Version
2.0.0
Version published
Maintainers
1
Created
Source

Codeship Status for ptlergo/debug-squasher

Debug-Squasher

A simple debug tool to display debug messages where needed. Perfect for testing models, and routes.

Install

npm install debug-squasher --save

Usage

Create a log folder in your project with the file lincoln.log. This will be to save all your debug messages.

/log/lincoln.log

Require the 'debug-squasher' package.

const util = require('debug-squasher');

.debug

user can decide what the output message should be. A 2nd parameter is available for data output object. The last parameter is telling which console method to use.

// Takes a title, object , and either log, error or warn
util.debug('title', object, 'log | error | warn')

Run

debug-squasher runs only when the Environmental Variable 'DEBUG' is on.

DEBUG=true node src/util.js

visit my app-store project to see it in action.

Keywords

tool

FAQs

Package last updated on 24 Jun 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