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

debugrc

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

debugrc

debug helper.

latest
Source
npmnpm
Version
0.9.9-alpha2
Version published
Maintainers
1
Created
Source

debugrc (debug real challange)

The debugrc is a simple debuger for agent based model debug processor But can be usable for other purpose.

##init a manager


const debugManager =  new (require('debugrc')).debugBase();

##init a new agent


const debugSubOne = debugManager.newSub('worker one');

##add one log


debugSubOne.log(
    'worker one', // 
    'event something to debug', // debug text
    7 // debug log level (0-9) (optional)
);

##short hand link function.

// init a link 
const debug_two = debugManager.link('worker two');

// log somethineg

debug_two(
    'idd',
    7
);

##set console class


debugManager.setup.set('consoleOut', console.log);

##set default Log Level


debugManager.setup.set('defaultLevel',6);

##set current Log Level


debugManager.setup.set('currentLevel',6);

##add one log


debugManager.log(
    'worker one', // 
    'event something to debug', // debug text
    7 // debug log level (0-9) (optional)
);

##shoert hand link function.

// link to a ne
const debug_two = debugManager.link('worker two');


debug_two('first debug message');

FAQs

Package last updated on 08 Nov 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