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

dotlogjs

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dotlogjs

A small library that let's you monitor variable changes

latest
npmnpm
Version
0.1.1
Version published
Weekly downloads
2
Maintainers
1
Weekly downloads
 
Created
Source

DotlogJS

A small library that let's you monitor variable changes

###Dependency Dotlog.js requires jquery. Please load Dotlog.js before your script file like so:

<script src="jquery-2.1.1.min.js"></script>
<script src="dotlog.js"></script>
<script src="script.js"></script>

###Usage To use Dotlog.js, you will need to put a snippet of code in your script file:

window.logVar = [var1,var2,var3,var4];
window.checkVar = logVar;
window.logName = ["health", "armor", "bullets", "stats"];
function dotLog() {
    window.logVar = [health,armor,bullets,dead];
    dotLogPrint();
}

logVar: an array that contains the variables that you want to be alerted when they changes. logName: an array of names that you want the variables to be printed out as. For the example above, var1 would be printed as "health: var1".
dotLog(): a function that will trigger and print out the changes in variables. You can change the name of the function

To see what the variable have changed into, trigger the logName() function.

FAQs

Package last updated on 29 Sep 2014

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